java - Doubt about strictfp and StrictMath -


i have little technical question, same call:

   public static strictfp double mymethod(double phi){        return math.exp(phi);    } 

or:

   public static double mymethod(double phi){        return strictmath.exp(phi);    } 

or strictfp keyword applies basic arithmetic operations + - * / used inside method?

or strictfp keyword applies basic arithmetic operations + - * / used inside method?

the strictfp keyword applies operations in method or class modifies. doesn't reroute calls math functions strictmath, need explicitly use strictmath instead of math.

from http://www.esus.com/javaindex/j2se/jdk1.2/javamath/strictfp.html

if floating point expression within strictfp "scope", results predictable described in ieee 754 ...


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -