I’d vote for isZero, isPositive, and isNegative extensions, all based on signum, as part of the standard library.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Strange BigDecimal result | 2 | 2487 | April 27, 2023 | |
| ByteArray Comparison | 14 | 21922 | May 29, 2016 | |
| New operators | 26 | 8055 | March 5, 2018 | |
|
Kotlin compareTo() and comparison operators
|
4 | 3783 | September 9, 2018 | |
| When == isn't equals() | 1 | 3340 | August 20, 2018 |