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

Home » Public Forums » archive » Re: [Q]: reading hexadecimal numbers from text files
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: [Q]: reading hexadecimal numbers from text files [message #24513 is a reply to message #24512] Mon, 02 April 2001 17:07 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
David Fanning (davidf@dfanning.com) writes:

> I have no idea how to read 'CS' into a short integer, but
> hexadecimal values are quite straightforward.

Well, "no idea" is perhaps too strong. You can turn
the string "CS" into a integer value like this:

IDL> variable = "CS"
IDL> var = Fix(Byte(variable), 0)
IDL> Print, var
21315

I'm just not sure that's what you really wanted to do. :-(

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Q]: reading hexadecimal numbers from text files
Next Topic: Re: IDL vs. Matlab

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

Current Time: Wed Oct 08 17:32:06 PDT 2025

Total time taken to generate the page: 0.00426 seconds