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

Home » Public Forums » archive » convert string to number
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
convert string to number [message #69950] Mon, 22 February 2010 10:44
Hassan is currently offline  Hassan
Messages: 48
Registered: October 2009
Member
Hi,

I have a string array , e.g. White, with 100 elements as each element
of the array contains 3 numbers
white[0]=0.265 0.156 0.35
white[1]=0.362 0.156 0.214
...
I want to conver the array to float but using the following function,
just the first number in each element is converted:
white_f=float(white) >>>0.265 0.362

I wonder how I can convert all numbers in each element of the string
array to Number format.

Thanks
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Poor comparable performance for IDL on Solaris vs Vista or Snow Leopard
Next Topic: mgunit 1.1

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

Current Time: Wed Oct 08 09:13:59 PDT 2025

Total time taken to generate the page: 0.00730 seconds