String to Float, without introducing errors
Sabrina Almodóvar
salmodovar at ligumu.com
Sat Dec 17 19:40:34 EST 2022
On 17/12/2022 18:55, Stefan Ram wrote:
> Grant Edwards <grant.b.edwards at gmail.com> writes:
>> Yes, fixed point (or decimal) is a better fit for what he's doing. but
>> I suspect that floating point would be a better fit for the problem
>> he's trying to solve.
>
> I'd like to predict that within the next ten posts in this
> thread someone will mention "What Every Computer Scientist
> Should Know About Floating-Point Arithmetic".
Lol! Speaking of which, let us guide ourselves by
https://floating-point-gui.de/basic/
and learn that calculations such as ``0.1 + 0.4 work correctly.''
That's the Internet. You learn a thing on a Tuesday, and on a Wednesday
you're a teacher. <sarcasm>That's why we need peer review.</sarcasm>
More information about the Python-list
mailing list