From be03c16850030049f117a18d293e734786ec7a84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 26 Mar 2019 20:47:24 +0100 Subject: [PATCH] Format --- README.md | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 7bd8507..cf534ab 100644 --- a/README.md +++ b/README.md @@ -352,15 +352,7 @@ Format {'abcde':10.3} # 'abc ' ``` -### Float Options -```python -{1.23456:.3f} # '1.235' -{1.23456:10.3f} # ' 1.235' -{1.23456:10.3e} # ' 1.235e+00' -{1.23456:10.3%} # ' 123.456%' -``` - -### Int Options +### Number Options ```python { 123456:10,} # ' 123,456' { 123456:10_} # ' 123_456' @@ -370,7 +362,14 @@ Format {-123456: } # '-123456' ``` -#### Char, Hex, Binary: +#### Float types: +```python +{1.23456:10.3f} # ' 1.235' +{1.23456:10.3e} # ' 1.235e+00' +{1.23456:10.3%} # ' 123.456%' +``` + +#### Int types: ```python {90:c} # 'Z' {90:X} # '5A'