Re: [Python-ideas] Hexadecimal floating literals

Sept. 12, 2017
7:24 a.m.
2017-09-12 1:27 GMT+02:00 Neil Schemenauer <neil@python.ca>:
In that case, I suggest float.fromhex() to remain consistent the bytes example:
... Oh wait, it already exists...
float.fromhex('0x1.921fb54442d18p+1') 3.141592653589793
:-D Victor
2745
Age (days ago)
2745
Last active (days ago)
0 comments
1 participants
participants (1)
-
Victor Stinner