This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

about strictfp  RSS feed

 
Kavitha R ram
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Anybody can explain about strictfp. i didnt get the exact definition.

Thanks in Advance
 
Praveen Babu
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kavitha,

It is used on classes or methods for floting point arithmetic.If this is specified then the resulting numbers are same on all platforms, since by typing the keyword strictfp we are saying the compiler to adhere to a specification namely the IEEE-754 standard.

However there is a catch. If your platform supports a higher precession then you have to sacrifice it.

Regards
Praveen
[ August 22, 2006: Message edited by: praveen babu ]
 
wise owen
Ranch Hand
Posts: 2023
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!