diff --git a/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/BigDecimal.kt b/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/BigDecimal.kt index 3f192155..f4b167fb 100644 --- a/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/BigDecimal.kt +++ b/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/BigDecimal.kt @@ -53,6 +53,10 @@ actual class BigDecimal(val decimal: NSDecimalNumber) : Comparable { return super.equals(other) } + override fun hashCode(): Int { + return decimal.hashCode() + } + override fun toString(): String { return decimal.description ?: decimal.descriptionWithLocale(NSLocale.currentLocale)