Just another Perl shrine | |
PerlMonks |
Re^3: Converting bytes to floatsby harangzsolt33 (Chaplain) |
on Apr 17, 2023 at 23:39 UTC ( [id://11151723]=note: print w/replies, xml ) | Need Help?? |
Yes, I think, what you are looking for is $number = unpack('d', $bytes);
If $bytes hold 8 bytes, then unpack will convert that to a number.
In Section
Seekers of Perl Wisdom
|
|