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

Home » Public Forums » archive » long to float
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
long to float [message #24623] Thu, 05 April 2001 07:54
Dominik[1] is currently offline  Dominik[1]
Messages: 46
Registered: April 2001
Member
Hello,

I have a small problem (i hope)

I read a number (is = -536852787) out of a file. But this number is not a
long, it shoul be a float. It should be sb =6588.00. I am not sure if the
first Number is a big endian, but the second is in little endian.
so, after I multiply the start number with -1 and make byteorder, the same
hexadecimal number is in the memory. It is FF1F33B9, but he shows
e -14732359
Is there a good way to see the stuff in memory as a float and not as a
long??

thanks for helping
Dominik

Example code
pro test

f = -536852787
help, f
print, Format='(Z)', f
f = -1 * f
help, f
print, Format='(Z)', f
byteorder, f
help, f
print, Format='(Z)', f
end
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Thanks for all your help
Next Topic: Re: Header File *.h?

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

Current Time: Wed Oct 08 15:42:44 PDT 2025

Total time taken to generate the page: 0.00568 seconds