converting ieee-float-format to pw-wave-float-format [message #2679] |
Wed, 24 August 1994 02:58 |
SLAMECZKA
Messages: 4 Registered: August 1994
|
Junior Member |
|
|
Hi everybody!!
My problem is the following:
I have an 4 byte float in the ieee-format and should convert it into the
pw_wave-format.
To do so, I had to shift the byte by 2, that means:
byte1 byte2 byte3 byte4 had to be shifted:
--> byte3 byte4 byte1 byte2
in pw_wave I do the following
readu,1,flo
print,flo ---> byte3 byte4 byte1 byte2
print,float(flo,0) ---> floaatingpointnumber
now my problem realy starts:
the result is only one quarter of the originally number, that means, if I had
a 10 then i get as result in pw_wave 2.5!!!
Are there any solutions on that problem?
whats the correct definition of the ieee-float-format?
Any solutions right here
or to
slameczka@biomech.biol.ethz.ch
thanks a lot
Michael
|
|
|