wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes strictfp doubt? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "strictfp doubt?" Watch "strictfp doubt?" New topic
Author

strictfp doubt?

pras
Ranch Hand

Joined: Apr 04, 2007
Posts: 188
it is said that without the strictfp modifier floating points used in methods behave in platform dependent way..

how come it is true??
because java is platform independent right??
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38031
    
  22
There is more in this article from 2001. The idea of strictfp is to "force" the JVM into giving infinity or 0 as an answer when the values go beyond the normal range of the floating point number.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: strictfp doubt?
 
Similar Threads
abstract strictfp class legal?
strictfp
modifers
Problem in strictfp
Doubt in K&B SCJP 5: topic Inner Classes