Class Floor
- Namespace
- YndigoBlue.Velocity.Functions
- Assembly
- YndigoBlue.Velocity.dll
Represents the FLOOR mathematical function that rounds a number down to the nearest integer.
public class Floor : Function, IElement, ICheckItem, IDefaultItem, IFilterItem
- Inheritance
-
Floor
- Implements
Remarks
The FLOOR function returns the largest integer less than or equal to the input value. For example, FLOOR(4.7) returns 4, FLOOR(-4.3) returns -5. This is useful for truncating decimals, bucketing values, or ensuring maximum quantities when rounding down is required.
Constructors
- Floor(IEnumerable<IElement>)
Initializes a new instance of FLOOR for multiple elements.
- Floor(IElement)
Initializes a new instance of FLOOR for a single element.