Saxonica.com

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