Hexadecimal floating literals
8 Sep
2017
8 Sep
'17
6:57 a.m.
The support of hexadecimal floating literals (like 0xC.68p+2) is included in just released C++17 standard. Seems this becomes a mainstream. In Python float.hex() returns hexadecimal string representation. Is it a time to add more support of hexadecimal floating literals? Accept them in float constructor and in Python parser? And maybe add support of hexadecimal formatting ('%x' and '{:x}')?
2377
Age (days ago)
2393
Last active (days ago)
46 comments
23 participants
participants (23)
-
Antoine Pitrou
-
Antoine Pitrou
-
Chris Angelico
-
Chris Barker
-
Chris Barker - NOAA Federal
-
David Mertz
-
Greg Ewing
-
Guido van Rossum
-
Jim Baker
-
Koos Zevenhoven
-
Lucas Wiman
-
M.-A. Lemburg
-
Neil Schemenauer
-
Nick Coghlan
-
Paul Moore
-
Random832
-
Rhodri James
-
Rob Cliffe
-
Serhiy Storchaka
-
Steven D'Aprano
-
Thibault Hilaire
-
Tim Peters
-
Victor Stinner