Change Duration.toString scientific exponent formatting

- use 'e+' for positive exponents in scientific format
This commit is contained in:
Ilya Gorbunov
2019-06-17 16:28:07 +03:00
parent a5b7c270ae
commit a2b1c537af
3 changed files with 17 additions and 12 deletions
@@ -24,5 +24,5 @@ internal actual fun formatUpToDecimals(value: Double, decimals: Int): String {
}
internal actual fun formatScientific(value: Double): String {
return value.asDynamic().toExponential(2).unsafeCast<String>().replace("+", "")
return value.asDynamic().toExponential(2).unsafeCast<String>()
}