strings (dollar.cents) into floats

Ben Finney bignose+hates-spam at benfinney.id.au
Thu Aug 30 23:18:40 EDT 2007


Wildemar Wildenburger <lasses_weil at klapptsowieso.net> 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)
measurements.

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



More information about the Python-list mailing list