mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix is_negative for new unified neg. number handling.
This commit is contained in:
@@ -720,9 +720,7 @@ Amount.prototype.is_native = function () {
|
||||
|
||||
Amount.prototype.is_negative = function () {
|
||||
return this._value instanceof BigInteger
|
||||
? this.is_native
|
||||
? this._value.compareTo(BigInteger.ZERO) < 0
|
||||
: this._is_negative
|
||||
? this._is_negative
|
||||
: false; // NaN is not negative
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user