JSFiddle - React, Tailwind, and code Playground

by no2don

JavaScript

document.write( (222220000).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1,").replace(/\.00/g, ''));