R – Perl module to convert c99 hex floating point notation to regular notation

floating-pointhexperlstring-parsing

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)?

Best Solution

There's nothing built-in, but CPAN is your friend. The Data::Float module has hex_float and float_hex functions to do this.