Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
Rounding to X digits
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Markus, post: 4446147"] ~/eg/ruby > ruby truncate.rb | 134.4 | 134.4 But this is truncate, not round. My internal jury is still out. Since 0.1 (base ten) in binary is a repeating decimal (binimal?), there has to be some rounding assumptions made somewhere. By their very nature, such assumptions can't always be right...but one might hope that they were never wrong in a case one cared about. I'll think more about it, but may not come to any conclusions before my one-week-in-Costa-Rica-with-no-internet. -- Markus [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Rounding to X digits
Top