Add STAmount::isNonZero

This commit is contained in:
JoelKatz
2012-08-08 01:35:34 -07:00
parent 8e89335e2b
commit 9fc4f469b8

View File

@@ -290,6 +290,7 @@ public:
bool isNative() const { return mIsNative; }
bool isZero() const { return mValue == 0; }
bool isNonZero() const { return mValue != 0; }
bool isNegative() const { return mIsNegative && !isZero(); }
bool isPositive() const { return !mIsNegative && !isZero(); }
bool isGEZero() const { return !mIsNegative; }