add TODO in AmountWithDecimalDecorator

add TODO in AmountWithDecimalDecorator
This commit is contained in:
Stanisalv 2020-09-14 12:43:30 +03:00
parent 93ea901019
commit 965f74f08b
1 changed files with 1 additions and 0 deletions

View File

@ -215,6 +215,7 @@ class AmountWithDecimalDecorator(
return formatter.format(this.replaceSeparatorsToDot().toDouble().floor())
}
// TODO make it simple
private fun Double.floor() = (this * 10f.pow(decimalPartLength)).roundToLong() / 10f.pow(decimalPartLength)
}