This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

strictfp doubt?

 
pras
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48363
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic