From 8759cd8e134205e98a2601c86352f66202a0f4b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 11 Mar 2020 11:58:14 +0100 Subject: [PATCH] Format --- README.md | 4 ++-- index.html | 4 ++-- web/script_2.js | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index ad91f24..1730421 100644 --- a/README.md +++ b/README.md @@ -442,7 +442,7 @@ Format #### Comparison of presentation types: ```text +---------------+-----------------+-----------------+-----------------+-----------------+ -| | {} | {:f} | {:e} | {:%} | +| | {} | {:f} | {:e} | {:%} | +---------------+-----------------+-----------------+-----------------+-----------------+ | 0.000056789 | '5.6789e-05' | '0.000057' | '5.678900e-05' | '0.005679%' | | 0.00056789 | '0.00056789' | '0.000568' | '5.678900e-04' | '0.056789%' | @@ -456,7 +456,7 @@ Format ``` ```text +---------------+-----------------+-----------------+-----------------+-----------------+ -| | {:.2} | {:.2f} | {:.2e} | {:.2%} | +| | {:.2} | {:.2f} | {:.2e} | {:.2%} | +---------------+-----------------+-----------------+-----------------+-----------------+ | 0.000056789 | '5.7e-05' | '0.00' | '5.68e-05' | '0.01%' | | 0.00056789 | '0.00057' | '0.00' | '5.68e-04' | '0.06%' | diff --git a/index.html b/index.html index e91b315..eb86f4a 100644 --- a/index.html +++ b/index.html @@ -533,7 +533,7 @@ to_exclusive = <range>.stop

Comparison of presentation types:

+---------------+-----------------+-----------------+-----------------+-----------------+
-|               |     {<real>}    |    {<real>:f}   |    {<real>:e}   |    {<real>:%}   |
+|               |    {<float>}    |   {<float>:f}   |   {<float>:e}   |   {<float>:%}   |
 +---------------+-----------------+-----------------+-----------------+-----------------+
 |   0.000056789 |    '5.6789e-05' |     '0.000057'  |  '5.678900e-05' |     '0.005679%' |
 |   0.00056789  |    '0.00056789' |     '0.000568'  |  '5.678900e-04' |     '0.056789%' |
@@ -547,7 +547,7 @@ to_exclusive   = <range>.stop
 
+---------------+-----------------+-----------------+-----------------+-----------------+
-|               |   {<float>:.2}  |   {<real>:.2f}  |   {<real>:.2e}  |   {<real>:.2%}  |
+|               |   {<float>:.2}  |  {<float>:.2f}  |  {<float>:.2e}  |  {<float>:.2%}  |
 +---------------+-----------------+-----------------+-----------------+-----------------+
 |   0.000056789 |    '5.7e-05'    |       '0.00'    |    '5.68e-05'   |       '0.01%'   |
 |   0.00056789  |    '0.00057'    |       '0.00'    |    '5.68e-04'   |       '0.06%'   |
diff --git a/web/script_2.js b/web/script_2.js
index 2a41d3f..3ffc203 100644
--- a/web/script_2.js
+++ b/web/script_2.js
@@ -105,12 +105,12 @@ const DIAGRAM_4_B =
  
 const DIAGRAM_5_A = 
   "+---------------+-----------------+-----------------+-----------------+-----------------+\n" +
-  "|               |     {}    |    {:f}   |    {:e}   |    {:%}   |\n" +
+  "|               |    {}    |   {:f}   |   {:e}   |   {:%}   |\n" +
   "+---------------+-----------------+-----------------+-----------------+-----------------+\n";
 
 const DIAGRAM_5_B =
   "┏━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┓\n" +
-  "┃               │     {<real>}    │    {<real>:f}   │    {<real>:e}   │    {<real>:%}   ┃\n" +
+  "┃               │    {<float>}    │   {<float>:f}   │   {<float>:e}   │   {<float>:%}   ┃\n" +
   "┠───────────────┼─────────────────┼─────────────────┼─────────────────┼─────────────────┨\n" +
   "┃   0.000056789 │    '5.6789e-05' │     '0.000057'  │  '5.678900e-05' │     '0.005679%' ┃\n" +
   "┃   0.00056789  │    '0.00056789' │     '0.000568'  │  '5.678900e-04' │     '0.056789%' ┃\n" +
@@ -124,12 +124,12 @@ const DIAGRAM_5_B =
 
 const DIAGRAM_6_A =
   "+---------------+-----------------+-----------------+-----------------+-----------------+\n" +
-  "|               |   {:.2}  |   {:.2f}  |   {:.2e}  |   {:.2%}  |\n" +
+  "|               |   {:.2}  |  {:.2f}  |  {:.2e}  |  {:.2%}  |\n" +
   "+---------------+-----------------+-----------------+-----------------+-----------------+\n";
 
 const DIAGRAM_6_B =
   "┏━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┓\n" +
-  "┃               │   {<float>:.2}  │   {<real>:.2f}  │   {<real>:.2e}  │   {<real>:.2%}  ┃\n" +
+  "┃               │   {<float>:.2}  │  {<float>:.2f}  │  {<float>:.2e}  │  {<float>:.2%}  ┃\n" +
   "┠───────────────┼─────────────────┼─────────────────┼─────────────────┼─────────────────┨\n" +
   "┃   0.000056789 │    '5.7e-05'    │       '0.00'    │    '5.68e-05'   │       '0.01%'   ┃\n" +
   "┃   0.00056789  │    '0.00057'    │       '0.00'    │    '5.68e-04'   │       '0.06%'   ┃\n" +