3 ms·
Thanks for the correction, I wasn't aware that Python uses floats. I would guess that most new languages starting today would use doubles instead of floats.
by cwzwarich 13y ago
Thanks for the correction, I wasn't aware that Python uses floats. I would guess that most new languages starting today would use doubles instead of floats.
- laurencerowe 13y ago'''...almost all platforms map Python floats to IEEE-754 “double precision”.''' http://docs.python.org/2/tutorial/floatingpoint.html http://docs.python.org/2/tutorial/floatingpoint.html
- MostAwesomeDude 13y agoPython as a language requires the float type to have at least double precision. This is sadly not documented explicitly, but the big four Python implementations all respect this.
- JoshTriplett 13y agoI didn't mean that Python uses "float" instead of "double"; I meant that Python has both integer and floating-point types, not just floating-point types as in JavaScript.