News for hackers. Stuff that matters.
Re:999999999999999 - 999999999999997 by joshu on Monday August 24, 2009 @05:26PM (#783414)
I remember a programmer once griping that you still need to be careful with floats, and that double-precision still did not have neough significant digits to store the dollar to turkish lira conversion rate..
Re:999999999999999 - 999999999999997 by jacquesm on Monday August 24, 2009 @05:28PM (#783418)
If you need floats you don't understand your problem ;)
Re:999999999999999 - 999999999999997 by calcnerd256 on Monday August 24, 2009 @07:12PM (#783630)
unless you're doing realtime graphics
Re:999999999999999 - 999999999999997 by jacquesm on Monday August 24, 2009 @07:43PM (#783691)
No, you can do realtime graphics just fine with fixed point arithmetic.

You can do nice matrix and vector math entirely in 16.16 fixed point. It's not as fast as having a co-processor, but there was a time that those were not standard items.

Re:999999999999999 - 999999999999997 by blasdel on Monday August 24, 2009 @09:38PM (#783898)
The problem is not with precision, but in using floats to represent money.

Why in the fuck would you try to do financial math with anything but fixed-point or rational numbers?