[Python-ideas] Deprecate the round builtin
bborcic at gmail.com
Wed Oct 3 14:52:43 CEST 2012
Mike Graham wrote:
> round(x, n) for n>0 is quite simply not sane code.
I've occasionally used round(x,n) with n>0 - as a quick way to normalize away
numeric imprecisions and have values generated by a computation recognized as
identical set elements or dictionary keys. I'd have used a function to round in
binary instead of decimal had one been handy, but otoh I don't see it would make
a real difference, would it?
More information about the Python-ideas