Close

Site Cloud

Login | Sitemap
Welcome, Guest
Please Login or Register.    Lost Password?

Floating Point Precision Loss
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Floating Point Precision Loss
#228
Floating Point Precision Loss 2 Months, 1 Week ago Karma: 5
2.34x1022 = 2340000000000000000000.0

Add one to it:
2340000000000000000000.0 + 1.0 = 2340000000000000000001.0

Subtract the Original Number:
2340000000000000000001.0 - 2340000000000000000000.0 = 0.000000000000000000001

Since floating points can only represent 6 significant figures the result is
interpreted as:

0.000000 = 0

support.microsoft.com/kb/145889

en.wikipedia.org/wiki/Loss_of_significance
Manuj
Administrator
Posts: 75
graph
User Offline Click here to see the profile of this user
Gender: Male Location: Bangalore Birthday: 07/04
Last Edit: 2010/06/23 03:56 By Manuj.
The administrator has disabled public write access.
"There is a principle which is a bar against all information, which is a proof against all argument, and which cannot fail to keep a man in everlasting ignorance - that principle is condemnation before investigation." - Herbert Spencer
 
#229
Re:Floating Point Precision Loss 2 Months, 1 Week ago Karma: 1
Cool!!
praju
Student
Posts: 45
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: Manuj
get the latest posts directly to your desktop

Latest Events

Contact Information

Information (General Information) KODE|academy, II Floor, K R Towers, 100 Feet Ring Road, BTM Layout, Ist Stage Bangalore, Karnataka 560068 India (080) or 41276688, Mobile: 9741500215, 9880223323
Feedback Problems? Contact here.