Returns the integer part of a number.
Fix ( numExpr )
numExpr
Any numeric expression.
Fix returns the value of its argument with the fractional part removed. The data type of the return value is determined by the data type of numExpr. The following table shows special cases.
numExpr |
Return value |
---|---|
NULL |
NULL |
Variant containing a string interpretable as a number |
Double |
Variant containing a date/time value |
The date part of the value |
The Fix function rounds toward 0:
The Fix function and the Int function behave differently. The return value from Int is always less than or equal to its argument.