JSFiddle - React, Tailwind, and code Playground

by Paco86

JavaScript

var a = 2.2222;

console.log(a.toFix(2));