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 #61375 is a reply to message #61374] Wed, 16 July 2008 09:17 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Jul 16, 10:02 am, d.po...@gmail.com wrote:
> Folks
> I have a float array that first column is the integer part and second
> column is the decimal part of that number. How I can append this to
> column to get one column of that float number. For example:
>
> [123,456]------> 123.456
>  ………               ……….
> Thanks
> Cheers

Like this?

IDL> d = long(1000 * randomu(seed, 2, 10))
IDL> print, d
895 528
34 183
877 169
614 604
205 789
537 526
413 360
643 687
360 881
512 874
IDL> print, d[0, *] + d[1, *] / (10. ^ (long(alog10(d[1, *])) + 1))
895.528
34.1830
877.169
614.604
205.789
537.526
413.360
643.687
360.881
512.874

Mike
--
www.michaelgalloy.cm
Tech-X Corporation
Software Developer II
[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: Wed Oct 08 18:29:04 PDT 2025

Total time taken to generate the page: 0.00459 seconds