money2
Search…
Overview
Common Currencies
Creating a Currency
Registering a Currency
Parsing
Find a currency
Default format
Symbols
Separators
Creating Money
Formatting
Storing and Send
Exchange Rates
Comparison
Currency Predicates
Value Sign Predicates
Arithmetic Operations
Allocation
Money encoding/decoding
Powered By
GitBook
Value Sign Predicates
To check if a money amount is a credit, a debit or zero, use predicates:
Money.isNegative
— returns
true
only if amount is less than
0
.
Money.isPositive
— returns
true
only if amount is greater than
0
.
Money.isZero
— returns
true
only if amount is
0
.
Previous
Currency Predicates
Next
Arithmetic Operations
Last modified
1yr ago
Copy link