comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » converting ieee-float-format to pw-wave-float-format
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
converting ieee-float-format to pw-wave-float-format [message #2679] Wed, 24 August 1994 02:58
SLAMECZKA is currently offline  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
[Message index]
 
Read Message
Previous Topic: Re: Multiple graphs in IDL
Next Topic: Re: top margin and !P.MULTI

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:26:33 PDT 2025

Total time taken to generate the page: 0.00389 seconds