Skip to content

tuple_intTupleIntTupleInttuple_inttuple_int🔗

Short description🔗

tuple_intTupleIntTupleInttuple_inttuple_int — Convert a tuple into a tuple of integer numbers.

Signature🔗

tuple_int( number T, out number Int )void TupleInt( const HTuple& T, HTuple* Int )static void HOperatorSet.TupleInt( HTuple t, out HTuple intVal )def tuple_int( t: MaybeSequence[Union[float, int]] ) -> Sequence[int]

def tuple_int_s( t: MaybeSequence[Union[float, int]] ) -> intHerror tuple_int( double T, Hlong* Int )

Herror T_tuple_int( const Htuple T, Htuple* Int )

HTuple HTuple::TupleInt( ) const

HTuple HTuple.TupleInt( )

Description🔗

tuple_intTupleInt converts the input tuple Ttt into a tuple of integer numbers by truncating Ttt. The conversion of a string is not allowed.

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_intTupleInt, which can be used in an expression in the following syntax:

Int := int(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) number(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[float, int]]Htuple (double / Hlong)

Input tuple.

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

Result of the conversion into integer numbers.

Combinations with other operators🔗

Combinations

Alternatives

tuple_roundTupleRound

Module🔗

Foundation