math:modf( $x as xs:double ) as (xs:double,xs:integer)
Returns x broken up into fraction and integer. x = fraction+integer.
math:modf(1.333) => 0.333 1