diff --git a/src/commonMain/kotlin/Money.kt b/src/commonMain/kotlin/Money.kt index b1de47d..96c5302 100644 --- a/src/commonMain/kotlin/Money.kt +++ b/src/commonMain/kotlin/Money.kt @@ -58,7 +58,7 @@ public interface Money { public operator fun compareTo(money: Money): Int /** - * A ratio to multiply Money. I can be used for representing + * A ratio to multiply Money. It can be used for representing * small ratios, like price per LLM token. */ @Description("Represents a ratio used to multiply Money") diff --git a/src/nonJvmMain/kotlin/NonJvmMoney.kt b/src/nonJvmMain/kotlin/NonJvmMoney.kt index 743e5b8..025b6c5 100644 --- a/src/nonJvmMain/kotlin/NonJvmMoney.kt +++ b/src/nonJvmMain/kotlin/NonJvmMoney.kt @@ -29,11 +29,11 @@ public class NonJvmMoney(private val value: BigDecimal) : Money { ) override fun times(amount: Money): Money = NonJvmMoney( - (value * (amount as NonJvmMoney).value) + value * (amount as NonJvmMoney).value ) override fun times(ratio: Money.Ratio): Money = NonJvmMoney( - (value * (ratio as NonJvmRatio).value) + value * (ratio as NonJvmRatio).value ) override fun compareTo(