This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Interview Guide this week in the Jobs Discussion 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: 46412
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?
It's not a secret anymore!