- or download this
my $float= unpack "f", pack "L", 0x428C0000;
- or download this
my $string= "0x428C0000";
my $float= unpack "f", pack "L", hex $string;
- or download this
my $string= "\x42\x8C\x00\x00";
- or download this
$float= unpack "f", $string;
$float= unpack "f", scalar reverse $string;
- or download this
my $string= "\x42\x8C\x00\x00";
my $float= unpack "f", pack "L", unpack "N", $string;