You can change the endianess of a whole string of binary data using scalar reverse, so long as you remember to reverse the template and results:
$raw = pack 'H*', '00000034000031b10191403b8811bb1366e4';; print for reverse unpack 'dCCVV', reverse $raw;; 52 12721 1 145 27.53152055
If you're working with large volumes of binary structures, doing it this way can save quite a lot of time.
In reply to Re: HEX to floating point
by BrowserUk
in thread HEX to floating point
by Spooky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |