tuple_number ( : : T : Number )

Convert a tuple (of strings) into a tuple of numbers.

tuple_number converts the input tuple T into a tuple of numbers. If the input tuple contains numbers, they are simply copied into the output tuple. Strings are converted into the appropriate type of number (integer or floating point numbers) or are copied as strings if they do not represent a number. Note that strings starting with 0x are interpreted as hexadecimal numbers, and strings starting with 0 as octal numbers. For example, the string '20' is converted to the integer 20, '020' to 16, and '0x20' to 32.


Parameters

T (input_control)
number(-array) -> real / integer / string
Input tuple.

Number (output_control)
number(-array) -> real / integer / string
Input tuple as numbers.


Parallelization Information

tuple_number is reentrant and processed without parallelization.


See also

tuple_is_number, tuple_string


Module

Operators not requiring licensing



Copyright © 1996-2005 MVTec Software GmbH