0
votes
Vote UpVote

What’s wrong with floating-point?

Source Code Adventures – Every so often, floating-point data types come under renewed criticism. There are plenty of good reasons to whisper behind their backs, but are they really all bad? The basic problem is that floating-point types represent any value as an approximation. It works really well too. In fact, for most whole numbers that you’re likely to encounter the approximation is exact, so 1 is always 1 and 10124 is always 10124. It gets messy in two scenarios. First, when the value is greater than the precision for your floating point type you start losing least significant digits. The precision for ...
Favorite? Off-Topic? Cobus Kruger @ 2009-06-22 23:13

Statistics

Visits: 46
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)