Skip to content

tuple_is_numberTupleIsNumberTupleIsNumbertuple_is_numbertuple_is_number🔗

Short description🔗

tuple_is_numberTupleIsNumberTupleIsNumbertuple_is_numbertuple_is_number — Check a tuple (of strings) whether it represents numbers.

Signature🔗

tuple_is_number( tuple T, out integer IsNumber )void TupleIsNumber( const HTuple& T, HTuple* IsNumber )static void HOperatorSet.TupleIsNumber( HTuple t, out HTuple isNumber )def tuple_is_number( t: MaybeSequence[Union[float, int, str]] ) -> Sequence[int]

def tuple_is_number_s( t: MaybeSequence[Union[float, int, str]] ) -> intHerror tuple_is_number( double T, Hlong* IsNumber )

Herror T_tuple_is_number( const Htuple T, Htuple* IsNumber )

HTuple HTuple::TupleIsNumber( ) const

HTuple HTuple.TupleIsNumber( )

Description🔗

tuple_is_numberTupleIsNumber checks each element of the input tuple Ttt whether it represents a number. If the element is a number (real or integer), 1 is returned for that element. If the element is a string, it is checked whether the string represents a number. If so, 1 is returned, otherwise 0.

Exception: Empty input tuple🔗

If the input tuple is empty, the operator returns an empty tuple.

HDevelop In-line Operation🔗

HDevelop provides an in-line operation for tuple_is_numberTupleIsNumber, which can be used in an expression in the following syntax:

IsNumber := is_number(T)

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

Parameters🔗

Ttt (input_control) tuple(-array) → (real / integer / string)HTuple (double / Hlong / HString)HTuple (double / int / long / string)MaybeSequence[Union[float, int, str]]Htuple (double / Hlong / char*)

Input tuple.

IsNumberisNumberis_number (output_control) integer(-array) → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

Tuple with Boolean numbers.

Combinations with other operators🔗

Combinations

Alternatives

tuple_is_intTupleIsInt, tuple_is_realTupleIsReal, tuple_typeTupleType, tuple_is_nan_elemTupleIsNanElem

See also

tuple_numberTupleNumber

Module🔗

Foundation