Skip to content

Commit 4d2eefc

Browse files
committed
Readme: Fix examples
1 parent 14d6820 commit 4d2eefc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ This standalone number formatter<sup>&dagger;</sup> is intended to be short and
1010

1111
```js
1212
format( "#,##0.####", 1234567.890 ); // output: "1,234,567.89"
13-
format( "$ #,###.00", -1234567.890 ); // output: "$ 1,234,567.89"
13+
format( "$ #,###.00", -1234567.890 ); // output: "$ -1,234,567.89"
1414

1515
// Added in v2.0.0
16-
format( "$ #,###.00", -1234567.890, {ignoreMaskSign: true}); // output: "$ 1,234,567.89"
17-
format( "$ -#,###.00", -1234567.890, {ignoreMaskSign: true}); // output: "$ -1,234,567.89"
18-
format( "$ +#,###.00", -1234567.890, {ignoreMaskSign: true}); // output: "$ -1,234,567.89"
19-
format( "$ +#,###.00", 1234567.890, {ignoreMaskSign: true}); // output: "$ +1,234,567.89"
16+
format( "$ #,###.00", -1234567.890, {enforceMaskSign: true}); // output: "$ 1,234,567.89"
17+
format( "$ -#,###.00", -1234567.890, {enforceMaskSign: true}); // output: "$ -1,234,567.89"
18+
format( "$ +#,###.00", -1234567.890, {enforceMaskSign: true}); // output: "$ -1,234,567.89"
19+
format( "$ +#,###.00", 1234567.890, {enforceMaskSign: true}); // output: "$ +1,234,567.89"
2020
```
2121

2222
&dagger; Initial development release of this code was written by KPL and hosted at [Google Code](https://code.google.com/p/javascript-number-formatter/).

0 commit comments

Comments
 (0)