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

Home » Public Forums » archive » Pack a Float into Bytes
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
Pack a Float into Bytes [message #76445] Thu, 02 June 2011 07:44
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

Does anyone know off-hand how you would pack a floating point
value into four bytes of information and then read it back
again? (Actually, I think I know how to use the FLOAT function
on a byte array to read the data back into a float, but
I don't readily recall how to pack the float into the byte
array to begin with. And I have no time this morning to
puzzle it out.)

Thanks!

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: I'm doing something wrong with map_image
Next Topic: Error when using !NULL as a property value. Bug or feature?

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

Current Time: Wed Oct 08 11:42:01 PDT 2025

Total time taken to generate the page: 0.00476 seconds