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

Home » Public Forums » archive » Re: Pack a Float into Bytes
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: Pack a Float into Bytes [message #76443 is a reply to message #76442] Thu, 02 June 2011 08:18 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Wayne writes:

> Is this what you mean?
>
> b = byte(!pi,0,4) ;Convert !pi to a byte array
> print,float(b,0,1) ;Convert back to a floating point number

Yes, that's what I mean. I was just getting on to write
a note that I found what I was looking for on my own
web page! (Not in such a nice, pithy two lines, though.)

I think I'll write this up for the future! :-)

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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL 8 on a Laptop
Next Topic: Re: IDL 8 on a Laptop

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

Current Time: Wed Oct 08 13:55:55 PDT 2025

Total time taken to generate the page: 0.00423 seconds