tuple_roundtuple_roundTupleRoundTupleRoundtuple_round (算子)
名称
tuple_roundtuple_roundTupleRoundTupleRoundtuple_round — 将元组转换为整数元组。
签名
Herror tuple_round(double T, Hlong* Round)
Herror T_tuple_round(const Htuple T, Htuple* Round)
def tuple_round(t: MaybeSequence[Union[float, int]]) -> Sequence[int]
def tuple_round_s(t: MaybeSequence[Union[float, int]]) -> int
描述
tuple_roundtuple_roundTupleRoundTupleRoundTupleRoundtuple_round converts the input tuple TTTTtt into a tuple
of integer numbers by rounding TTTTtt to the nearest integer.
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_roundtuple_roundTupleRoundTupleRoundTupleRoundtuple_round,
which can be used in an expression in the following syntax:
Round := round(T)
执行信息
- 多线程类型:独立(即使使用独占算子也能并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
TTTTtt (输入控制) number(-array) → HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Input tuple.
RoundRoundRoundRoundroundround (输出控制) number(-array) → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Result of the rounding.
替代
tuple_inttuple_intTupleIntTupleIntTupleInttuple_int
模块
基础