Mark Dickinson <dicki...@gmail.com> added the comment:

> Converting Decimal, Fraction, float128 to float before using it in expression 
> can lead to loss of precision.

My experience is that this loss of precision is hardly ever a practical problem 
in the real world of scientific development; in practice floating-point numbers 
 are almost universally IEEE 754 doubles (perhaps sometimes single-precision in 
large datasets, like seismic SEG-Y files; occasionally IBM format hex floats; 
but IEEE 754 doubles are by far the majority). It's very rare to be using 
float128 or Decimal or Fraction in practice for scientific data.

That's not to say that people outside that world won't be using these things, 
but there's a big ecosystem where float64 is pretty much all you need.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40801>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to