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

Home » Public Forums » archive » Re: 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 #61445 is a reply to message #61371] Wed, 16 July 2008 16:17 Go to previous messageGo to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
"David Fanning" <news@dfanning.com> wrote in message
news:MPG.22e7d00f5c02361998a3f0@news.frii.com...
...
>> 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
>
> Alright, these explanations don't exactly leap to mind for me.
> Which math class was I suppose to learn this in? :-(

lol, sorry. I replied with a quick answer, then at the last second
changed the post to handle an arbitrary length of digits. For some
reason, counting the number digits jumped into my mind first, and
apparently I have found the least best algorithm for solving this
particular problem. Is there a prize for most obsfucated solution?

Cheers,
bob

PS changing a post at the last second is always a bad idea.
PPS 'least best' sounds better than 'worst', imho.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 330 Humingbird GPS 33020
Next Topic: Re: IDL Matrix Multiply and Dual-Core CPUs

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

Current Time: Fri Oct 10 08:57:18 PDT 2025

Total time taken to generate the page: 0.00213 seconds