JSFiddle - React, Tailwind, and code Playground

by Torean Joel

HTML

Rounding to two decimals

JavaScript

function round(num){
    var result = Math.round(num * 100) / 100;
    return console.log(result);
}

round(0.4284);