TOTALORDER

The TOTALORDER function returns an ordering for DECFLOAT values.

TOTALORDER(-INF, -INF) ==> 0 
TOTALORDER(-1.0, -1.0) ==> 0 
TOTALORDER(-1.0, -1.00) ==> -1 
TOTALORDER(-1.0, -0.5) ==> -1 
TOTALORDER(-1.0, 0.5) ==> -1 
TOTALORDER(-1.0, INF) ==> -1 
TOTALORDER(-1.0, SNAN) ==> -1 
TOTALORDER(-1.0, NAN) ==> -1 
TOTALORDER(NAN, -1.0) ==> 1 
TOTALORDER(-NAN, -NAN) ==> 0 
TOTALORDER(-SNAN, -SNAN) ==> 0 
TOTALORDER(NAN, NAN) ==> 0 
TOTALORDER(SNAN, SNAN) ==> 0