obspy.core.util.obspy_types.FloatWithUncertaintiesAndUnit.fromhex

FloatWithUncertaintiesAndUnit.fromhex()

Create a floating-point number from a hexadecimal string.

>>> float.fromhex('0x1.ffffp10')
2047.984375
>>> float.fromhex('-0x1p-1074')
-5e-324