math.modf

math.modf(
   x as Number
) as Sequence

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
Powered by MarkLogic Server | Terms of Use | Privacy Policy