Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is strictfp?

 
Isabel Wanderley
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know what is the use for strictfp keyword, can anyone explain me this?
 
pree sree
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
go to this link.http://java.sun.com/docs/books/jls/second_edition/html/jIX.fm.html
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Putting it simply strictfp tells the compiler/jvm not to use any fancy gee-whiz floating point tricks depending on the system it is running on. The object of it is to get the same floating point arithmetical results on all systems the program runs on.
-Barry
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Javaranch SCJP FAQ : What does strictfp keyword mean?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic