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

Home » Public Forums » archive » Re: printing hexadecimal
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
Re: printing hexadecimal [message #51008] Wed, 01 November 2006 06:57 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Robert Moss, PhD writes:

> Being the lazy sort, I'm wondering if there is a built-in or user
> routine around that will accept an array of bytes and output them (to
> screen or file) as hexidecimal out there. I could write one, but as I
> said, I'd prefer to have someone else to the grunt work :)

Uh, I think IDL has already thought of this:

IDL> var = bindgen(20)
IDL> Print, var, Format='(20(z2.2,x))'

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: printing hexadecimal [message #51084 is a reply to message #51008] Thu, 02 November 2006 08:21 Go to previous message
Robert Moss, PhD is currently offline  Robert Moss, PhD
Messages: 29
Registered: November 2006
Junior Member
Well, there ya go. I knew someone would do the grunt work for me. And
so cheerfully too. I would have simply said "RTFM".

r

David Fanning wrote:
> Robert Moss, PhD writes:
>
>> Being the lazy sort, I'm wondering if there is a built-in or user
>> routine around that will accept an array of bytes and output them (to
>> screen or file) as hexidecimal out there. I could write one, but as I
>> said, I'd prefer to have someone else to the grunt work :)
>
> Uh, I think IDL has already thought of this:
>
> IDL> var = bindgen(20)
> IDL> Print, var, Format='(20(z2.2,x))'
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.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: Re: IDL Fonts
Next Topic: IDL Fonts

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

Current Time: Thu Oct 09 06:05:12 PDT 2025

Total time taken to generate the page: 1.28120 seconds