[Python-ideas] Python Float Update
Guido van Rossum
guido at python.org
Tue Jun 2 06:31:47 CEST 2015
On Mon, Jun 1, 2015 at 9:21 PM, Stephen J. Turnbull <stephen at xemacs.org>
wrote:
> Joonas Liik writes:
>
> > Having some sort of decimal literal would have some advantages of its
> own,
> > for one it could help against this sillyness:
>
> > I'm not saying that the actual data type needs to be a decimal (
> > might well be a float but say shove the string repr next to it so
> > it can be accessed when needed)
>
> That *would* be a different type from float.
Shudder indeed.
> You may as well go all
> the way to Decimal.
>
Or perhaps switch to decimal64 (
http://en.wikipedia.org/wiki/Decimal64_floating-point_format)? (Or its
bigger cousing, decimal128)
--
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150601/d94f26ba/attachment-0001.html>
More information about the Python-ideas
mailing list