Loading TOC...

MarkLogic Server 11.0 Product Documentation
math:modf

math:modf(
   $x as xs:double
) as (xs:double,xs:integer)

Summary

Returns x broken up into fraction and integer. x = fraction+integer.

Parameters
x The floating point number to be evaluated.

Example

  math:modf(1.333)

  => 0.333
     1

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