tuple_inttuple_intTupleIntTupleInttuple_int (算子)

名称

tuple_inttuple_intTupleIntTupleInttuple_int — 将元组转换为整数元组。

签名

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

描述

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

例外:空输入元组

If the input tuple is empty, the operator returns an empty tuple.

HDevelop 内联操作

HDevelop provides an in-line operation for tuple_inttuple_intTupleIntTupleIntTupleInttuple_int, which can be used in an expression in the following syntax:

Int := int(T)

执行信息

参数

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

Input tuple.

IntIntIntIntintValint (输出控制)  number(-array) HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Result of the conversion into integer numbers.

替代

tuple_roundtuple_roundTupleRoundTupleRoundTupleRoundtuple_round

模块

基础