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 #61373 is a reply to message #61371] Wed, 16 July 2008 09:20 Go to previous messageGo to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
<d.poreh@gmail.com> wrote in message
news:c09c9b8a-35a7-41d7-9088-7bce01762053@x35g2000hsb.google groups.com...
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


Here is an example:


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
[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 19:17:42 PDT 2025

Total time taken to generate the page: 0.00399 seconds