math:frexp( $x as xs:double ) as (xs:double,xs:integer)
Returns x broken up into mantissa and exponent, where x = mantissa*2^exponent.
math:frexp(10) => 0.625 4