JSFiddle - React, Tailwind, and code Playground

JavaScript

var i = "1234";
    var xxx = Math.floor(i * 100) / 100
    alert(xxx);