Class Round
- Namespace
- YndigoBlue.Velocity.Functions
- Assembly
- YndigoBlue.Velocity.dll
Represents the ROUND mathematical function that rounds a number to a specified number of decimal places.
public class Round : Function, IElement, ICheckItem, IDefaultItem, IFilterItem
- Inheritance
-
Round
- Implements
Remarks
The ROUND function rounds a numeric value to the specified number of decimal places. Positive decimal values round to that many digits after the decimal point, while negative values round to the left of the decimal point. For example, ROUND(123.456, 2) returns 123.46, ROUND(123.456, -1) returns 120. Rounding behavior (round half up, round half even) may vary by database system.
Constructors
- Round(double, int)
Initializes a new instance of ROUND with literal value and decimal places.
- Round(Column, int)
Initializes a new instance of ROUND with a column value and literal decimal places.
- Round(Column, Column)
Initializes a new instance of ROUND with column-based value and decimal places.
- Round(Expression, int)
Initializes a new instance of ROUND with an expression value and literal decimal places.