Hexadecimal, if so. Nearly any decent modern language and runtime can it.
$ python >>> import math >>> math.pi.hex() '0x1.921fb54442d18p+1'
(I donʼt count decimal floating-point as it is quite rare and its application is faint. In overwhelming most of cases, fixed point is better.)
Hexadecimal, if so. Nearly any decent modern language and runtime can it.
This gives exact value without any rounding effects and conversion cost.(I donʼt count decimal floating-point as it is quite rare and its application is faint. In overwhelming most of cases, fixed point is better.)