|
|
|
|
|
by swiftcoder
97 days ago
|
|
> It's a programming fundamental that you shouldn't be converting magic numbers to floats or doing math with floats without considering inaccuracy. This is all well and good in a language that makes you declare distinct floating point types, but in python things are maybe not so clear cut - the language uses arbitrary precision integers by default, and it's not always crystal clear when they are going to be converted to a (lossy) floating point representation Yeah, the programmer should probably be aware of the ins and out here, but python folks often aren't all that in the weeds with the bits and the bytes |
|