aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Paland <marco@paland.com>2018-09-24 15:24:54 +0200
committerMarco Paland <marco@paland.com>2018-09-24 15:24:54 +0200
commit3df03358b7482f254937aaaa1ada709df9de22aa (patch)
tree01d30366a1f8398e7201935316b4dfc671c7fbc8
parent00f2525d1a712c80c2f2b5ffa648e44fbc29ee05 (diff)
downloadprintf-3df03358b7482f254937aaaa1ada709df9de22aa.tar.gz
printf-3df03358b7482f254937aaaa1ada709df9de22aa.tar.bz2
printf-3df03358b7482f254937aaaa1ada709df9de22aa.zip
chore(readme): updated readme
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 348a30c..d4c2ea5 100644
--- a/README.md
+++ b/README.md
@@ -105,7 +105,7 @@ The following format specifiers are supported:
| - | Left-justify within the given field width; Right justification is the default. |
| + | Forces to preceed the result with a plus or minus sign (+ or -) even for positive numbers.<br>By default, only negative numbers are preceded with a - sign. |
| (space) | If no sign is going to be written, a blank space is inserted before the value. |
-| # | Used with o, x or X specifiers the value is preceeded with 0, 0x or 0X respectively for values different than zero.<br>Used with f, F it forces the written output to contain a decimal point even if no more digits follow. By default, if no digits follow, no decimal point is written. |
+| # | Used with o, b, x or X specifiers the value is preceeded with 0, 0b, 0x or 0X respectively for values different than zero.<br>Used with f, F it forces the written output to contain a decimal point even if no more digits follow. By default, if no digits follow, no decimal point is written. |
| 0 | Left-pads the number with zeroes (0) instead of spaces when padding is specified (see width sub-specifier). |
@@ -171,6 +171,7 @@ int length = sprintf(NULL, "Hello, world"); // length is set to 12
- The internal floating point conversion has a maximum precision of 9 digits. Any higher precision is truncated after the 9th digit and zeros are returned.
So `printf("%.12f", 42.89522312345678)` gives `42.895223123000`.
- Exponential floating point format (e.g. `"%.10e"` to get `1.167e+65`) for large numbers is not supported yet. Sorry.
+- `double` type is not supported in the moment, downcast to `float` might by required.
## Test suite