float to double

This commit is contained in:
rybakovi 2020-10-05 14:28:29 +03:00
parent 09061c1bcf
commit 14d11a1fc8
1 changed files with 1 additions and 1 deletions

View File

@ -216,6 +216,6 @@ class AmountWithDecimalDecorator(
}
// TODO make it simple
private fun Double.floor() = (this * 10f.pow(decimalPartLength)).roundToLong() / 10f.pow(decimalPartLength)
private fun Double.floor() = (this * 10.0.pow(decimalPartLength)).roundToLong() / 10.0.pow(decimalPartLength)
}