Skip to content

tuple_roundTupleRoundTupleRoundtuple_roundtuple_round🔗

Short description🔗

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

Signature🔗

tuple_round( number T, out number Round )void TupleRound( const HTuple& T, HTuple* Round )static void HOperatorSet.TupleRound( HTuple t, out HTuple round )def tuple_round( t: MaybeSequence[Union[float, int]] ) -> Sequence[int]

def tuple_round_s( t: MaybeSequence[Union[float, int]] ) -> intHerror tuple_round( double T, Hlong* Round )

Herror T_tuple_round( const Htuple T, Htuple* Round )

HTuple HTuple::TupleRound( ) const

HTuple HTuple.TupleRound( )

Description🔗

tuple_roundTupleRound converts the input tuple Ttt into a tuple of integer numbers by rounding Ttt to the nearest integer. 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_roundTupleRound, which can be used in an expression in the following syntax:

Round := round(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.

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

Result of the rounding.

Combinations with other operators🔗

Combinations

Alternatives

tuple_intTupleInt

Module🔗

Foundation