Is there a built-in library that I can use to convert c99 style floating point notation, example: 0x1.0p23f, to regular floating point numbers using Perl (and vice versa)?
Asked
Active
Viewed 509 times
3
-
Related: stackoverflow.com/questions/770342 – ephemient Apr 29 '09 at 19:04
1 Answers
5
There's nothing built-in, but CPAN is your friend. The Data::Float module has hex_float
and float_hex
functions to do this.

Michael Carman
- 30,628
- 10
- 74
- 122