JSFiddle - React, Tailwind, and code Playground

JavaScript

var number = 5.9999999999;
console.log(Math.ceil( number * 100 ) / 100)