LOTUSSCRIPT LANGUAGE


Fraction function
Example

Returns the fractional part of a number.

Syntax

Fraction ( numExpr )

Elements

numExpr


Return value

The data type of the return value is the same as the data type of numExpr.

Usage

The following table shows special cases of the return value:

numExprReturn value
A date/time valueThe time portion
An integer0
NULL NULL

Tip It is always true that Fix(numExpr) + fraction(numExpr) = numExpr.

Example
See Also