diff --git a/README.md b/README.md index 434d693..fa9a89a 100644 --- a/README.md +++ b/README.md @@ -471,7 +471,7 @@ Format | 56.789 | '5.7e+01' | '56.79' | '5.68e+01' | '5678.90%' | +--------------+----------------+----------------+----------------+----------------+ ``` -* **`'{:g}'` is `'{:.6}'` with stripped zeros, exponent starting at 7 figures.** +* **`'{:g}'` is `'{:.6}'` with stripped zeros, exponent starting at `'1e+06'`.** * **When both rounding up and rounding down are possible, the one that returns result with even last digit is chosen. That makes `'{6.5:.0f}'` a `'6'` and `'{7.5:.0f}'` an `'8'`.** * **This rule only effects numbers that can be represented exactly by a float (`.5`, `.25`, …).** diff --git a/index.html b/index.html index 3392873..361b333 100644 --- a/index.html +++ b/index.html @@ -435,7 +435,7 @@ Point(x=1, y=2
    -
  • '{<float>:g}' is '{<float>:.6}' with stripped zeros, exponent starting at 7 figures.
  • +
  • '{<float>:g}' is '{<float>:.6}' with stripped zeros, exponent starting at '1e+06'.
  • When both rounding up and rounding down are possible, the one that returns result with even last digit is chosen. That makes '{6.5:.0f}' a '6' and '{7.5:.0f}' an '8'.
  • This rule only effects numbers that can be represented exactly by a float (.5, .25, …).