MarkLogic 9 Product Documentation
sql:sign

sql:sign(
   $x as xs:double
) as xs:double

Summary

Returns the sign of number x.

Parameters
x The number to be evaluated.

Example

  sql:sign(19.5)
  => 1
Powered by MarkLogic Server | Terms of Use | Privacy Policy