[Tutor] the binary math "wall"

Lie Ryan lie.1296 at gmail.com
Tue Apr 20 19:50:01 CEST 2010

On 04/21/10 02:58, Lowell Tackett wrote:
> I'm running headlong into the dilemma of binary math representation, with game-ending consequences, e.g.:

Never use float for representing numbers, use float to represent a
"magnitude", do not rely on the exact representation of the number itself.

If you need to control the representation of your number, either keep
the number as integers or string or use fixed-point arithmetic
(Decimal), depending on your use case.

More information about the Tutor mailing list