aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "strictfp doubt?" Watch "strictfp doubt?" New topic

strictfp doubt?

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

Joined: Oct 13, 2005
Posts: 36599
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.
I agree. Here's the link:
subject: strictfp doubt?
Similar Threads
Problem in strictfp
Doubt in K&B SCJP 5: topic Inner Classes
abstract strictfp class legal?