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

Home » Public Forums » archive » appending to column
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: appending to column [message #61455 is a reply to message #61378] Wed, 16 July 2008 11:22 Go to previous messageGo to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
"Jean H" <jghasban@DELTHIS.ucalgary.ANDTHIS.ca> wrote in message
news:g5lb22$inp$1@news.ucalgary.ca...
>> IDL> print,a
>> 0 1
>> 2 3
>> 4 311
>> IDL> print,a[0,*] +
>> float(a[1,*])/10^strlen(strcompress(string(a[1,*]),/rem))
>> 0.100000
>> 2.30000
>> 4.31100
>>
>>
>> Cheers,
>> bob
>
> While using strings, we can make it more efficiently. There is no need to
> do any division, get the length or anything:
>
> IDL> help, 1 + float('0.'+strtrim(234,2))
> <Expression> FLOAT = 1.23400
>
> Jean

It is always a trade-off. Do you want an answer fast,
or do you want an answer that is right?

lol

Cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Save File Surprise
Next Topic: Unique Identifier

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

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

Total time taken to generate the page: 0.00220 seconds