Bugs: Browse | Submit New | Admin

[#11371] floating point rounding errors

Date:
2007-06-05 17:07
Priority:
3
Submitted By:
Roger Pack (rogerdpack)
Assigned To:
Akinori MUSHA (knu)
Category:
Math
State:
Open
Platform:
 
Summary:
floating point rounding errors

Detailed description
I realize this may have been mentioned, and apologize in advance.
Old news.  Anyway so ruby floats are *very* subject to rounding errors which bite programmers often.  
I move for the adoption of 'BigDecimal' (or 'Longdecimal' [from rubyforge]) as the default type for precision, and then
let programmers choose to use floats later if they want to optimize for speed.  This would save much headache to programmers,
and allow them to worry about speed optimization later.  Thank you!
-Roger

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item