3 ms·
But Python also warns about it in the documentation, and provide the factions (https://docs.python.org/3.1/library/fractions.html https://docs.python.org/3.1/li
by sametmax 10y ago
But Python also warns about it in the documentation, and provide the factions (https://docs.python.org/3.1/library/fractions.html https://docs.python.org/3.1/library/fractions.html) module and the decimal module thttps://docs.python.org/3.1/library/decimal.html https://docs.python.org/3.1/library/decimal.html) in the stdlib to avoid the problem.
- int_19h 10y agoOne thing I really wish Python had is decimal literals. I mean, it does have imaginary literals, which is arguably more of a corner case...