XLeratorDB/math Documentation
QUOTIENT
Updated: 17 August 2010
QUOTIENT returns the integer portion of a division.
Syntax
SELECT [westclintech].[wct].[QUOTIENT] (
<@Numerator, float,>
,<@Denominator, float,>)
Arguments
@Numerator
is the dividend. @Numerator is an expression of type float or of a type that can be implicitly converted to float.
@Denominator
is the divisor. @Denominator is an expression of type float or of a type that can be implicitly converted to float.
Return Types
float
Remarks
Example
SELECT wct.QUOTIENT(-5, 2)
Here is the result set
----------------------
-2
(1 row(s) affected)