From 085da7451c02a25661d5dd441c13a634aa37662a Mon Sep 17 00:00:00 2001 From: MoonsvnLyn <287222957+FirmaSpring@users.noreply.github.com> Date: Mon, 17 Aug 2026 17:37:13 +0800 Subject: [PATCH] docs: correct %d and document %f in the formatters table Co-authored-by: FirmamentalSpring <287222957+FirmaSpring@users.noreply.github.com> --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 654d105a..63ae23c6 100644 --- a/README.md +++ b/README.md @@ -188,7 +188,8 @@ Below are the officially supported formatters: | `%O` | Pretty-print an Object on multiple lines. | | `%o` | Pretty-print an Object all on a single line. | | `%s` | String. | -| `%d` | Number (both integer and float). | +| `%d` | Integer (printf `%d`; floats are truncated toward zero). | +| `%f` | Floating-point number. | | `%j` | JSON. Replaced with the string '[Circular]' if the argument contains circular references. | | `%%` | Single percent sign ('%'). This does not consume an argument. |