JSFiddle - React, Tailwind, and code Playground

JavaScript

var x = 599.99, y = 500;
    var z = (x-y).toFixed(2);
alert(z);