From e9cdb73ae5222f6e738c01bf5108d0584ed73768 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 15 Jun 2015 11:46:14 -0700 Subject: [PATCH] Update README. --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a931e38..28abe18 100644 --- a/README.md +++ b/README.md @@ -123,8 +123,10 @@ The available *type* values are: The type `n` is also supported as shorthand for `,g`. For the `g`, `n` and `​` (none) types, decimal notation is used if the resulting string would have *precision* or fewer digits; otherwise, exponent notation is used. For example: ```js -format(".2")(42); // "42" -format(".1")(42); // "4e+1" +format(".2")(42); // "42" +format(".2")(4.2); // "4.2" +format(".1")(42); // "4e+1" +format(".1")(4.2); // "4" ``` # locale.formatPrefix(specifier, value)