floating point in 2.0

Boyd Roberts boyd at insultant.net
Thu Jun 7 17:53:19 EDT 2001


"Chris Barker" <chrishbarker at home.net> a écrit dans le message news: 3B1FDB85.E2A7D53A at home.net...
> ... later, when we checked the values,
> we found that when you round a double representation of pi to a float,
> and then back to a double, you get a bigger number, which we didn't
> expect. Here is an example:

well this is the sort of stuff i was referring to.  float/double/float
casts are fraught with peril.  floating point is one thing i try
and avoid -- i just don't know that much about it, except that it's
a minefield.

i'll stick with systems/network programming and IP security.






More information about the Python-list mailing list