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

Home » Public Forums » archive » Convert 8 byte array to double
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Convert 8 byte array to double [message #94017 is a reply to message #94016] Wed, 21 December 2016 03:19 Go to previous message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
One more thought: Of course you have to use double instead of float.
If you are expecting 0.6 as the result, the given number is little
endian. This can be considered in by:

litle_endian=byte(1s,0,1)
print,double(litle_endian? a : reverse(a),0,1)

Cheers, Heinz
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: date/time generation
Next Topic: FYI: What's New in IDL 8.6

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

Current Time: Fri Oct 10 05:03:00 PDT 2025

Total time taken to generate the page: 2.07448 seconds