views:

141

answers:

1

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,

+5  A: 

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