Results 1 to 8 of 8
 10192012, 03:47 AM #1Member
 Join Date
 Oct 2012
 Posts
 37
 Rep Power
 0
 10192012, 03:49 AM #2Member
 Join Date
 Sep 2012
 Posts
 70
 Rep Power
 0
Re: what is the math function to square a number/ variable?
Math.sqrt(number) i think
 10192012, 03:51 AM #3Member
 Join Date
 Oct 2012
 Posts
 37
 Rep Power
 0
Re: what is the math function to square a number/ variable?
Thanks a ton
 10192012, 03:54 AM #4Member
 Join Date
 Sep 2012
 Posts
 70
 Rep Power
 0
Re: what is the math function to square a number/ variable?
retract this post :/
 10192012, 04:19 AM #5
Re: what is the math function to square a number/ variable?
Math.sqrt finds the square root. Perhaps you want Math.pow instead.
 10192012, 06:36 AM #6Moderator
 Join Date
 Feb 2009
 Location
 New Zealand
 Posts
 4,709
 Rep Power
 13
Re: what is the math function to square a number/ variable?
or foo*foo
 10192012, 09:50 AM #7Member
 Join Date
 Sep 2012
 Location
 Guntur, India
 Posts
 27
 Rep Power
 0
Re: what is the math function to square a number/ variable?
No sqrt(number) gives square root not square.
 10192012, 09:53 AM #8Member
 Join Date
 Sep 2012
 Location
 Guntur, India
 Posts
 27
 Rep Power
 0
Similar Threads

Something weird about a math function
By Mapisto in forum New To JavaReplies: 7Last Post: 02022012, 05:40 PM 
Without Using Java.lang.Math Square Root.. How to calculate of 2 given Numbers.
By javasri in forum Forum LobbyReplies: 3Last Post: 06302011, 09:01 PM 
Help with Square root function and Overload(calc error)
By racingoutbac in forum New To JavaReplies: 3Last Post: 11042010, 01:09 AM 
[SOLVED] How to generate a random number from chisquare
By aeo3 in forum AWT / SwingReplies: 3Last Post: 04162009, 01:42 AM 
math.random function help
By katie in forum New To JavaReplies: 2Last Post: 08062007, 03:31 AM
Bookmarks