Download on-line documentation - ACT`s WIPE

Transcript
[ready]:$str = "1234\n5678\n9012"
[ready]:fmode = 1
[ready]:fmode.text = "\\d" // every single digit will be an element of
the output matrix
[ready]:str2array( $str, fmode )
1.00,
2.00,
3.00,
4.00
5.00,
6.00,
7.00,
8.00
9.00,
0.00,
1.00,
2.00
[ready]:fmode.text = "\\d\\d"
// every pair of digits will be an
element of the output matrix
[ready]:str2array( $str, fmode )
12.00,
34.00
56.00,
78.00
90.00,
12.00
[ready]:
str2float
Syntax:
Converts Numeric String to Float
str2float($string, fmode)
Description:
This command has been superseded by the newer str2array. We strongly advice
against using this command in new code. Use the str2array instead.
See Also:
str2int
Syntax:
str2array
Converts Numeric String to Integer
str2int($string)
Description:
Returns an array where numeric values in the string, delimeted by commas or
linefeeds, are converted to integer values and then saved in an array variable. Values delimeted by
commas are stored in the same array row. The linefeed , ‘\n’ , is used as the row delimeter when
copying into the array.
See Also:
str2float, strlen, str2float, strhex2int, int2str
Example:
See code below for example usage of str2int(), st2float(), and strhex2int().
290 Internal Functions
ACT-REACT/MSHELL User’s Manual