SAXONICA

Saxon Documentation
Full Contents
About Saxon
Changes in this Release
Notices
Using XSLT 2.0
Using XQuery
Handling Source Documents
XML Schema Processing
XPath API for Java
Saxon on .NET
Extensibility
Saxon Extensions
| Introduction
| EXSLT Extensions
| Extension attributes (XSLT only)
| Additional serialization parameters
» | Extension functions
| Extension instructions
Sample Saxon Applications
The Saxon SQL Extension
XSLT Elements
XPath 2.0 Expression Syntax
Function Library
Standards Conformance

# saxon:is-whole-number()

saxon:is-whole-number($arg as numeric?) ==> boolean

This function takes a number as input and returns true if the number has no fractional part, that is, if it is equal to some integer. If an empty sequence is supplied, the function returns false.

This function is provided largely because it is used internally by the Saxon optimizer.

Example:

    saxon:is-whole-number(12e0)

will return true.

Next