float equality

bearophile bearophileHUGS at lycos.com
Mon Feb 21 16:08:42 PST 2011


Andrei Alexandrescu:

> This is a long-standing myth. I worked on Wall Street and have friends 
> who have been doing it for years. Everybody uses double.

Unbrutal Python programmers are encouraged to avoid the float type to manage money values, and use decimal instead:
http://docs.python.org/library/decimal.html

Bye,
bearophile


More information about the Digitalmars-d mailing list