tuple_roundtuple_roundTupleRoundTupleRoundtuple_round (Operator)

Name

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

Signature

tuple_round( : : T : Round)

Herror tuple_round(double T, Hlong* Round)

Herror T_tuple_round(const Htuple T, Htuple* Round)

void TupleRound(const HTuple& T, HTuple* Round)

HTuple HTuple::TupleRound() const

static void HOperatorSet.TupleRound(HTuple t, out HTuple round)

HTuple HTuple.TupleRound()

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

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

Description

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

Round := round(T)

Execution Information

Parameters

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

Input tuple.

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

Result of the rounding.

Alternatives

tuple_inttuple_intTupleIntTupleInttuple_int

Module

Foundation