Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

strictfp

This is a discussion on strictfp within the Java forums, part of the Software Development category; For what purpose strictfp keyword is used in java?...

Go Back   Geeks Talk > Software Development > Java
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Java Java related Issues and Problems

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-02-2009
Contributing Member
 
Join Date: Aug 2009
Location: Indore
Posts: 33
Thanks: 9
Thanked 5 Times in 5 Posts
Sarje is on a distinguished road
strictfp

For what purpose strictfp keyword is used in java?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-09-2009
Expert Member
 
Join Date: May 2009
Location: Bangalore
Posts: 991
Thanks: 155
Thanked 420 Times in 201 Posts
rijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nice
Re: strictfp

Quote:
Originally Posted by Sarje View Post
For what purpose strictfp keyword is used in java?
Hi Sarje,

The keyword strictfp allows u to have more (predictable) control over floating-point arithmetic.

Strictfp ensures that u get exactly the same results from u r floating point calculations on every platform.

U can use strictfp as a modifier of class, interface, and method declarations, like..

strictfp interface A {}

public strictfp class geek
{
strictfp void f() {}
}

Thanks,
Riju.
Reply With Quote
The Following 2 Users Say Thank You to rijus For This Useful Post:
  #3 (permalink)  
Old 09-23-2009
Contributing Member
 
Join Date: Aug 2009
Location: bangalore
Posts: 30
Thanks: 11
Thanked 3 Times in 3 Posts
abhi981 is on a distinguished road
Red face Re: strictfp

Hi,

strictfp keyword is used in java to ensure that the JVM follows IEEE 754 standard for floating point arithmetic If this keyword is not used then presion of result of floating point arithmetic is depends upon the JVM.

Thanks & Regards,
Abhijit
Reply With Quote
The Following User Says Thank You to abhi981 For This Useful Post:
Reply

  Geeks Talk > Software Development > Java

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -4. The time now is 08:12 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved