tuple_inttuple_intTupleIntTupleInttuple_int (算子名称)
名称
tuple_inttuple_intTupleIntTupleInttuple_int — Convert a tuple into a tuple of integer numbers.
参数签名
Herror tuple_int(double T, Hlong* Int)
Herror T_tuple_int(const Htuple T, Htuple* Int)
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.
Exception: Empty input tuple
If the input tuple is empty, 该算子 returns an empty tuple.
HDevelop In-line Operation
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)
运行信息
- Multithreading type: independent (runs in parallel even with exclusive operators).
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
参数表
TTTTtt (input_control) number(-array) → HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Input tuple.
IntIntIntIntintValint (output_control) number(-array) → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Result of the conversion into integer numbers.
可替代算子
tuple_roundtuple_roundTupleRoundTupleRoundTupleRoundtuple_round
模块
Foundation