__d64_compare_exponents, __d128_compare_exponents

Purpose

Compare Exponents

Compares the exponents of two decimal floating-point values.

Prototype

long __d64_compare_exponents (_Decimal64, _Decimal64);

long __d128_compare_exponents (_Decimal128, _Decimal128);

Return value

Returns the following values:
  • Less than 0 if the exponent of the first parameter is less than the exponent of the second parameter.
  • 0 if both parameters have the same exponent value or if both are quiet or signaling NaNs (quiet and signaling are considered equal) or both are infinities.
  • Greater than 0 if the exponent of the first argument is greater than the exponent of the second argument.
  • -2 if one of the two parameters is a quiet or signaling NaN or one of the two parameters is an infinity.