Operator Reference

tuple_inttuple_intTupleIntTupleInttuple_int (Operator)

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

Signature

tuple_int( : : T : Int)

Herror tuple_int(double T, Hlong* Int)

Herror T_tuple_int(const Htuple T, Htuple* Int)

void TupleInt(const HTuple& T, HTuple* Int)

HTuple HTuple::TupleInt() const

static void HOperatorSet.TupleInt(HTuple t, out HTuple intVal)

HTuple HTuple.TupleInt()

def tuple_int(t: MaybeSequence[Union[float, int]]) -> Sequence[int]

def tuple_int_s(t: MaybeSequence[Union[float, int]]) -> int

Description

tuple_inttuple_intTupleIntTupleInttuple_int converts the input tuple TTTtt into a tuple of integer numbers by truncating TTTtt. 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_inttuple_intTupleIntTupleInttuple_int, which can be used in an expression in the following syntax:

Int := int(T)

Execution Information

  • Multithreading type: independent (runs in parallel even with exclusive operators).
  • Multithreading scope: global (may be called from any thread).
  • Processed without parallelization.

Parameters

TTTtt (input_control)  number(-array) HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Input tuple.

IntIntIntintValint (output_control)  number(-array) HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Result of the conversion into integer numbers.

Alternatives

tuple_roundtuple_roundTupleRoundTupleRoundtuple_round

Module

Foundation