JSFiddle - React, Tailwind, and code Playground

JavaScript

var num = (40071.13 + 6028.91) - 46100.04;
alert(num.toFixed(2));