tuple_roundtuple_roundTupleRoundTupleRoundtuple_round (Operator)

Name

tuple_roundtuple_roundTupleRoundTupleRoundtuple_round — Konvertieren eines Tupels in ein Tupel von ganzen Zahlen.

Signatur

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

Beschreibung

tuple_roundtuple_roundTupleRoundTupleRoundTupleRoundtuple_round konvertiert das Eingabetupel TTTTtt in ein Tupel von ganzen Zahlen. Dabei wird TTTTtt zur nächsten ganzen Zahl gerundet. Die Konversion von Strings ist nicht erlaubt.

Sonderfall: Leeres Eingabetupel

Falls das Eingabetupel leer ist, gibt der Operator ein leeres Tupel zurück.

HDevelop Inline-Operation

HDevelop unterstützt eine Inline-Operation für tuple_roundtuple_roundTupleRoundTupleRoundTupleRoundtuple_round, die innerhalb eines Ausdrucks in der folgenden Syntax verwendet werden kann:

Round := round(T)

Ausführungsinformationen

Parameter

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

Eingabetupel.

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

Ergebnis der Rundung.

Alternativen

tuple_inttuple_intTupleIntTupleIntTupleInttuple_int

Modul

Foundation