]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/number_decimalquantity.h
ICU-66108.tar.gz
[apple/icu.git] / icuSources / i18n / number_decimalquantity.h
index 06cc836c7796f22ea7cf3628bc0f654291053a1e..4ec6c5a5b2bcf7deb389d25c6210a1d2c5050e04 100644 (file)
@@ -146,14 +146,17 @@ class U_I18N_API DecimalQuantity : public IFixedDecimal, public UMemory {
      */
     int32_t getMagnitude() const;
 
-    /** @return Whether the value represented by this {@link DecimalQuantity} is zero. */
-    bool isZero() const;
+    /**
+     * @return Whether the value represented by this {@link DecimalQuantity} is
+     * zero, infinity, or NaN.
+     */
+    bool isZeroish() const;
 
     /** @return Whether the value represented by this {@link DecimalQuantity} is less than zero. */
     bool isNegative() const;
 
-    /** @return -1 if the value is negative; 1 if positive; or 0 if zero. */
-    int8_t signum() const;
+    /** @return The appropriate value from the Signum enum. */
+    Signum signum() const;
 
     /** @return Whether the value represented by this {@link DecimalQuantity} is infinite. */
     bool isInfinite() const U_OVERRIDE;