sql:sign( $x as xs:double ) as xs:double
Returns the sign of number x.
sql:sign(19.5) => 1
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.