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

Home » Public Forums » archive » why does not show the number correctly
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: why does not show the number correctly [message #62269 is a reply to message #62171] Fri, 29 August 2008 08:20 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
xiao writes:

> Hi~ everyone. This the the part of my program. The data is all right
> here, But when I run it , the number of my color bar and the grids
> does not show right. (Like letter or something ) Why is that? Anyone
> can help?

It is because the number is a byte, and bytes, when they are converted
to strings, are converted "literally". Most literal characters
cannot be represented on computers. Make this number
an INT before you convert it to a string for display.

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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Two named structures with the same name that won't concatenate. Any suggestions?
Next Topic: write widget_table out to file?

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

Current Time: Fri Oct 10 03:49:27 PDT 2025

Total time taken to generate the page: 0.87879 seconds