code so far Re: Converting a 'unique' floating point number into a defult FP variable.

2005-04-15 Thread Pete Lancashire
a bit messy but ... i'm thinking x86 byte order ? === #!/usr/local/bin/perl use strict; # a IEEE FP NUMBER # http://www.psc.ed

Re: Converting a 'unique' floating point number into a defult FP variable.

2005-04-15 Thread Chris Devers
On Fri, 15 Apr 2005, Pete Lancashire wrote: > I've been trying pack/unpack but just can't seem to get > it to work. And maybe pack/unpack is not the right > way to go ? Please show the code you've tried so far. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Converting a 'unique' floating point number into a defult FP variable.

2005-04-15 Thread Pete Lancashire
I'm decoding a binary data file and one thing I'm having trouble with is a 24 bit/3 byte floating point number. I've put the whole file into a array split every byte. I've been trying pack/unpack but just can't seem to get it to work. And maybe pack/unpack is not the right way to go ? Here's wha