ClassesClassesClassesClasses | | | | Operators

tuple_numbertuple_numberTupleNumbertuple_numberTupleNumberTupleNumber (Operator)


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


tuple_number( : : T : Number)

Herror tuple_number(const char* T, double* Number)

Herror T_tuple_number(const Htuple T, Htuple* Number)

Herror tuple_number(const HTuple& T, double* Number)

Herror tuple_number(const HTuple& T, HTuple* Number)

void TupleNumber(const HTuple& T, HTuple* Number)

HTuple HTuple::TupleNumber() const

void HOperatorSetX.TupleNumber(
[in] VARIANT T, [out] VARIANT* Number)

VARIANT HTupleX.TupleNumber([in] VARIANT T)

static void HOperatorSet.TupleNumber(HTuple t, out HTuple number)

HTuple HTuple.TupleNumber()


tuple_numbertuple_numberTupleNumbertuple_numberTupleNumberTupleNumber converts the input tuple TTTTTt 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.



TTTTTt (input_control)  number(-array) HTupleHTupleHTupleVARIANTHtuple (string / real / integer) (string / double / int / long) (HString / double / Hlong) (char* / double / Hlong) (BSTR / double / Hlong) (char* / double / Hlong)

Input tuple.

NumberNumberNumberNumberNumbernumber (output_control)  number(-array) HTupleHTupleHTupleVARIANTHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*) (double / Hlong / BSTR) (double / Hlong / char*)

Input tuple as numbers.

See also

tuple_is_numbertuple_is_numberTupleIsNumbertuple_is_numberTupleIsNumberTupleIsNumber, tuple_stringtuple_stringTupleStringtuple_stringTupleStringTupleString



ClassesClassesClassesClasses | | | | Operators