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

Home » Public Forums » archive » concatenating strings
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: concatenating strings [message #85697 is a reply to message #85696] Wed, 28 August 2013 06:29 Go to previous message
Seb is currently offline  Seb
Messages: 15
Registered: January 2006
Junior Member
On Tue, 27 Aug 2013 16:32:41 -0700 (PDT),
Phillip Bitzer <bitzerp@uah.edu> wrote:

> Just to add a little hint, try using help:
IDL> help, STRING(year)
> <Expression> STRING = ' 2011'

> Now, you can clearly see the blanks.

> And yes, "+" is doing concatenation:
IDL> help, string(year) + string(mon) + string(day)
> <Expression> STRING = ' 2011 10 21'

> A piece of advice, since you're starting out: be careful with
> "print". Sometimes, you think something has gone terribly wrong, when
> in fact everything's OK:
IDL> a = 14.12345 print, a
> 14.1235

> Did IDL truncate my number? No, it's just a limitation of the default
> print format:
IDL> print, a, FORMAT='(F10.6)'
> 14.123450

Thanks both of you for these pointers. I'm learning via a combination
of reading documentation/books and reviewing/editing code I've
inherited.

Cheers,

--
Seb
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: What subprogram? What parameters and keywords?
Next Topic: Emacs IDLWAVE

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

Current Time: Wed Oct 08 19:29:03 PDT 2025

Total time taken to generate the page: 0.00433 seconds