float to double
This commit is contained in:
parent
09061c1bcf
commit
14d11a1fc8
|
|
@ -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)
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue