3

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

Deduplicator
  • 44,692
  • 7
  • 66
  • 118

1 Answers1

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