floating point glitch
Piet van Oostrum
piet at cs.uu.nl
Tue Sep 28 05:50:36 EDT 2004
>>>>> Paul Rubin <http://phr.cx@NOSPAM.invalid> (PR) wrote:
PR> Paul Foley <see at below.invalid> writes:
>> The "perfect solution" is either: (a) to print the minimal number of
>> digits that can maintain print/read consistency -- in this case, that
>> means printing "0.66",
PR> Nah, you can do that by printing everything as zero.
That would not maintain print/read consistency, i.e. if you read back the
printed value you don't get the original value.
--
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl
More information about the Python-list
mailing list