JSFiddle - React, Tailwind, and code Playground

by nevkatz

JavaScript

let n = 4;

console.log(parseFloat(n).toFixed(0));