Merge pull request #174 from TouchInstinct/fix-error-with-long-numbers
float to double
This commit is contained in:
commit
f8b7db07c3
|
|
@ -216,6 +216,6 @@ class AmountWithDecimalDecorator(
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO make it simple
|
// 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