I have form data (IEEE 745 hexadecimal)
0x1.5c28f5c28f5c3p-1
How do I convert this to float in python? Is this a standard module?
Hello,
Alex
>>> float.fromhex('0x1.5c28f5c28f5c3p-1') 0.68
Ah ha:
In the standard library "float.fromhex",
https://docs.python.org/2/library/stdtypes.html#float.fromhex
Source: https://habr.com/ru/post/1237112/More articles:Xamarin-Android Mvvmcross - by clicking on the appeared application to launch notifications with a splash or bring to the fore - androidkube-proxy in iptables mode does not work - kubernetesroute does not work in chintz with kubernetes - kubernetesHow does the recursion method work? - javaHow do you create a C # property that can subscribe to another WinForm control during development? - c #Why am I getting “hPutChar: resource disappeared” errors from Haskell's simple network code? - haskellHow do you arbitrarily apply a type variable - castingTranspose in dplyr - rHow to enter spring configuration value for Joda period - springMySQL reference to avoid repetition? - mysqlAll Articles