strings (dollar.cents) into floats

Ben Finney bignose+hates-spam at
Fri Aug 31 05:18:40 CEST 2007

Wildemar Wildenburger <lasses_weil at> writes:

> But what use is there for floats, then? When is it OK to use them?

When one is willing to sacrifice decimal precision for speed of
calculation, and doesn't need the numbers to stay precise. E.g. when
performing millions of calculations on real-world (analogue)

 \                "Too many Indians spoil the golden egg."  -- Sir Joh |
  `\                                                   Bjelke-Petersen |
_o__)                                                                  |
Ben Finney

More information about the Python-list mailing list