add TODO in AmountWithDecimalDecorator
add TODO in AmountWithDecimalDecorator
This commit is contained in:
parent
93ea901019
commit
965f74f08b
|
|
@ -215,6 +215,7 @@ class AmountWithDecimalDecorator(
|
||||||
return formatter.format(this.replaceSeparatorsToDot().toDouble().floor())
|
return formatter.format(this.replaceSeparatorsToDot().toDouble().floor())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO make it simple
|
||||||
private fun Double.floor() = (this * 10f.pow(decimalPartLength)).roundToLong() / 10f.pow(decimalPartLength)
|
private fun Double.floor() = (this * 10f.pow(decimalPartLength)).roundToLong() / 10f.pow(decimalPartLength)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue