From ffa06e1a048fbad3fdff19d7cb73fdff5b309f0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 5 Jul 2023 15:26:37 +0200 Subject: [PATCH] Format --- README.md | 1 + index.html | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e0dd57a..7ab893f 100644 --- a/README.md +++ b/README.md @@ -471,6 +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.** * **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 3b77db2..f955b68 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@
- +
@@ -435,6 +435,7 @@ Point(x=1, y=2
    +
  • '{<float>:g}' is '{<float>:.6}' with stripped zeros, exponent starting at 7 figures.
  • 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, …).
@@ -2932,7 +2933,7 @@ $ pyinstaller script.py --add-data '<path>:.'