Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Group: String Manipulation
See also: string substr

Function: atof
Description: Converts strings to numbers.

Usage: z = atof(x)
Input:
x array of strings
Output:
z array

Note:

Example:
s = #("123", "2")~#("3", "4")~#("1.0"+"6", "three")
z = atof(s)
s; array of strings
z; array of numbers

Result:
Contents of s



[1,] "123" "3" "1.06"

[2,] "2" "4" "three"

Contents of z

[1,]      123        3     1.06

[2,]        2        4     +NAN



(C) MD*TECH Method and Data Technologies, 05.02.2006