logo

1-pixel-wealth

Source code for <https://mkorostoff.github.io/1-pixel-wealth/>: Wealth shown to scale
commit: 849afe6e5d6a4577ee60e6f6de4faec1ec580225
parent c5cd95910bcd7a68c1d84127be72da20d2128202
Author: EatTheRichTextFormat <64558123+EatTheRichTextFormat@users.noreply.github.com>
Date:   Fri,  1 May 2020 12:18:01 +0200

Remove decimal places on wealth counter

They aren't necessary, add visual clutter and on some platforms always show zero anyway.

Diffstat:

Mmain.js2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/main.js b/main.js @@ -16,6 +16,8 @@ var thousand = new Intl.NumberFormat('en-US') var money = new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD', + minimumFractionDigits: 0, + maximumFractionDigits: 0, }); //todo: also work for 400 richest