tuple_floortuple_floorTupleFloorTupleFloortuple_floor (Operator)
Name
tuple_floortuple_floorTupleFloorTupleFloortuple_floor
— Compute the floor function of a tuple.
Signature
Herror tuple_floor(double T, double* Floor)
Herror T_tuple_floor(const Htuple T, Htuple* Floor)
def tuple_floor(t: MaybeSequence[Union[float, int]]) -> Sequence[float]
def tuple_floor_s(t: MaybeSequence[Union[float, int]]) -> float
Description
tuple_floortuple_floorTupleFloorTupleFloortuple_floor
computes the floor function of the input tuple
TTTtt
, i.e., the largest integer less than or equal to
TTTtt
. The floor function is always returned as a floating
point number. The floor function of a string is not allowed.
Exception: Empty input tuple
If the input tuple is empty, the operator returns an empty tuple.
HDevelop In-line Operation
HDevelop provides an in-line operation for tuple_floortuple_floorTupleFloorTupleFloortuple_floor
,
which can be used in an expression in the following syntax:
Floor := floor(T)
Execution Information
- Multithreading type: independent (runs in parallel even with exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
TTTtt
(input_control) number(-array) →
HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Input tuple.
FloorFloorFloorfloorfloor
(output_control) number(-array) →
HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Floor function of the input tuple.
Alternatives
tuple_ceiltuple_ceilTupleCeilTupleCeiltuple_ceil
Module
Foundation