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)?
Thanks,
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)?
Thanks,
There's nothing built-in, but CPAN is your friend. The Data::Float module has hex_float
and float_hex
functions to do this.