Merge pull request #174 from TouchInstinct/fix-error-with-long-numbers

float to double
This commit is contained in:
rybakovi 2020-10-05 14:33:33 +03:00 committed by GitHub
commit f8b7db07c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
} }