From 56caa78bf8a66d883784e2cdf701318bcb018bdf Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 6 Aug 2020 01:46:22 +0200 Subject: [PATCH] Changed setting up BigDecimal.Zero to Double --- .../kotlin/net/dankito/utils/multiplatform/BigDecimal.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/src/jvmMain/kotlin/net/dankito/utils/multiplatform/BigDecimal.kt b/common/src/jvmMain/kotlin/net/dankito/utils/multiplatform/BigDecimal.kt index 51b31c6a..00be278c 100644 --- a/common/src/jvmMain/kotlin/net/dankito/utils/multiplatform/BigDecimal.kt +++ b/common/src/jvmMain/kotlin/net/dankito/utils/multiplatform/BigDecimal.kt @@ -17,8 +17,7 @@ actual fun Collection.sum(): BigDecimal { actual class BigDecimal actual constructor(decimal: String) : java.math.BigDecimal(decimal) { actual companion object { - actual val Zero = - BigDecimal("0") // TODO: is this correct? + actual val Zero = BigDecimal(0.0) }