|
-
September 6th, 2009, 03:24 PM
#10
Re: c++ precision question
 Originally Posted by Lindley
I wouldn't say that's the only solution. You could use a fixed-point representation in some cases. This is typically what is done with money----just work in terms of cents.
Rounding is the only way to handle the conversion error problem associated with floating point representations. Not using floating points isn't a solution to this particular problem.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|