Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $length = length($contents) / 8; foreach (my $i = 0; $i < $length; $i ++) { my $offset = $i * 8; print ord substr($contents, $offset, 8), "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Converting bytes to floats
by ikegami (Patriarch) on Apr 17, 2023 at 18:23 UTC | |
by Anonymous Monk on Apr 17, 2023 at 19:28 UTC | |
by ikegami (Patriarch) on Apr 18, 2023 at 04:08 UTC | |
by syphilis (Archbishop) on Apr 18, 2023 at 05:40 UTC | |
by ikegami (Patriarch) on Apr 18, 2023 at 13:31 UTC | |
by stevieb (Canon) on Apr 18, 2023 at 08:35 UTC | |
| |
by harangzsolt33 (Deacon) on Apr 17, 2023 at 23:39 UTC | |
|
Re: Converting bytes to floats
by etj (Priest) on Apr 18, 2023 at 19:04 UTC | |
|
Re: Converting bytes to floats
by Anonymous Monk on Apr 18, 2023 at 14:16 UTC |