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

Home » Public Forums » archive » Re: Command line display format
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: Command line display format [message #75771 is a reply to message #75770] Wed, 04 May 2011 12:01 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On May 4, 3:56 pm, Ammar Yusuf <amyus...@gmail.com> wrote:
> Hi, so I did this in the command line:
> IDL> print, wave_special[2], wave_special[1], wave_special[2]-
> wave_special[1]
>       1260.20      1260.10    0.0999756
>
> I was hoping it would print out 0.10 but it's something really close.
> How can I display in my command line the actual values of
> wave_special. I know in Matlab you can type format short, format long,
> to do it.
>
> Is using the print format the only way to see? Thanks!

If what you are looking for is format control, you can use the format
keyword to print. Using Fortran-style formats, it could be something
like:

print,wave_special[2], wave_special[1], wave_special[2]-
wave_special[1],format='(3E22.15)'

See the help on print for more details on format codes, including how
to use C-style formats.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Command line display format
Next Topic: 3d visualization

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

Current Time: Fri Oct 10 13:44:11 PDT 2025

Total time taken to generate the page: 0.39890 seconds