This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff 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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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: 40453
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?