Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

fn:round

Return number closest to its argument.


Syntax

fn:round(double? $number) => double?

Top of page

Description

This function returns the number that is closest to $number. More precisely, fn:round(x) returns the same result as fn:floor(x + 0.5). If the argument is the empty sequence, it returns the empty sequence. If the argument is a literal, then the literal must be a valid lexical form of its type.

Top of page

Argument

$number

double-precision number

Top of page

Examples

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:

Top of page