PDA

View Full Version : Vb 6 Programming



The King
10-21-2003, 11:14 PM
what would i do to make it figure out a square root? is there a certain symbol or equation i have to use for the program?

4play
10-21-2003, 11:17 PM
(x)^1/2

that should give you the square root of x

The King
10-21-2003, 11:25 PM
it only gives me half of the number. might as well divide by 2

4play
10-21-2003, 11:38 PM
(x)^(1/2) then ;)

that means to the power of a half which is what a square root is.

The King
10-21-2003, 11:41 PM
thanks it working now :lol:

4play
10-21-2003, 11:44 PM
the only problem is when you take a square root of something there are 2 answers.

say you take the square root of 9. its 3 right.

well it is also -3 that squared is 9 to.

The King
10-21-2003, 11:48 PM
but it just give me the positive not the negative. and thats what i want. It won;t give me negatives at any time will it?

4play
10-21-2003, 11:49 PM
nope

The King
10-21-2003, 11:52 PM
thats good. Thanks for the help

shn
10-22-2003, 03:09 AM
I hate my vb.net class. Know any good tutorials 4 play? The text book that goes with the course is a little confusing and indecisive. I need one of those vb quickguides so I can learn it all in like 3 days. That way I can skip class more because I would have already known it.