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

Home » Public Forums » archive » Re: convert string to number
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: convert string to number [message #69986 is a reply to message #69948] Thu, 04 March 2010 06:24 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
pp schrieb:
> On Feb 22, 3:44 pm, Hassan <hkhav...@gmail.com> wrote:
>> I wonder how I can convert all numbers in each element of the string
>> array to Number format.
>
> white_f=fltarr(3,100)
> reads,white,white_f

by type casting?

IDL> s = string(white_f)
IDL> help,s
S STRING = Array[3, 100]

may be you want to give a format too, e.g.

s = string(white_f, format='(G5.2)')

cheers
Reimar
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: "stack plot" function from ENVI in IDL?
Next Topic: double click in dialogs doesn't work

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

Current Time: Thu Oct 09 07:20:29 PDT 2025

Total time taken to generate the page: 1.27930 seconds