XLeratorDB/math Documentation
EVEN
Updated: 17 August 2010
Use EVEN to calculate a number rounded up to the nearest even integer.
Syntax
SELECT [westclintech].[wct].[EVEN] (
<@Number, float,>)
Arguments
@Number
is the value to round. @Number is an expression of type float or of a type that can be implicitly converted to float.
Return Types
float
Remarks
· The term rounding up always means rounding away from zero
Example
SELECT wct.EVEN(-1.1)
Here is the result set
----------------------
-2
(1 row(s) affected)