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 |
s = #("123", "2")~#("3", "4")~#("1.0"+"6", "three") z = atof(s) s; array of strings z; array of numbers
Contents of s [1,] "123" "3" "1.06" [2,] "2" "4" "three" Contents of z [1,] 123 3 1.06 [2,] 2 4 +NAN