Skip to content

Commit 9f1b3d6

Browse files
committed
add test for numeric separators
1 parent b090153 commit 9f1b3d6

File tree

2 files changed

+443
-0
lines changed

2 files changed

+443
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
1_000_000_000 // Ah, so a billion
2+
101_475_938.38 // And this is hundreds of millions
3+
4+
let fee = 123_00; // $123 (12300 cents, apparently)
5+
let fee = 12_300; // $12,300 (woah, that fee!)
6+
let amount = 12345_00; // 12,345 (1234500 cents, apparently)
7+
let amount = 123_4500; // 123.45 (4-fixed financial)
8+
let amount = 1_234_500; // 1,234,500

0 commit comments

Comments
 (0)