strings (dollar.cents) into floats

Ben Finney bignose+hates-spam at benfinney.id.au
Fri Aug 31 05:18:40 CEST 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