Loading TOC...

math:floor

math:floor(
   $x as xs:double
) as xs:double

Summary

Returns the largest integer less than or equal to x.

Parameters
x The floating point number to be evaluated.

Example

  math:floor(4.013)

  => 4

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.