tuple_floortuple_floorTupleFloorTupleFloortuple_floor (算子)

名称

tuple_floortuple_floorTupleFloorTupleFloortuple_floor — 计算元组的向下取整函数。

签名

tuple_floor( : : T : Floor)

Herror tuple_floor(double T, double* Floor)

Herror T_tuple_floor(const Htuple T, Htuple* Floor)

void TupleFloor(const HTuple& T, HTuple* Floor)

HTuple HTuple::TupleFloor() const

static void HOperatorSet.TupleFloor(HTuple t, out HTuple floor)

HTuple HTuple.TupleFloor()

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

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

描述

tuple_floortuple_floorTupleFloorTupleFloorTupleFloortuple_floor computes the floor function of the input tuple TTTTtt, i.e., the largest integer less than or equal to TTTTtt. The floor function is always returned as a floating point number. The floor function 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_floortuple_floorTupleFloorTupleFloorTupleFloortuple_floor, which can be used in an expression in the following syntax:

Floor := floor(T)

执行信息

参数

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

Input tuple.

FloorFloorFloorFloorfloorfloor (输出控制)  number(-array) HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Floor function of the input tuple.

替代

tuple_ceiltuple_ceilTupleCeilTupleCeilTupleCeiltuple_ceil

模块

基础