We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › double-precision sqrt
Page Index Toggle Pages: 1
double-precision sqrt? (Read 634 times)
double-precision sqrt?
Mar 13th, 2010, 10:48pm
 
I have a situation where I need a double-precision square-root, i.e., sqrt(float(x)) is not adequate. Is it possible to access the Java double-precision sqrt() function from Processing? If so, how does one do this?

Dr. Phillip M. Feldman
Re: double-precision sqrt?
Reply #1 - Mar 14th, 2010, 12:32am
 
Just feed it with a double variable and of course, get the result in a similar variable.
Page Index Toggle Pages: 1