1. const NumericalProcessing = (val) => {
    2. let num = +val;
    3. if (isNaN(num)) num = 0;
    4. num = (Math.round(num * 10000) / 10000.0).toFixed(2);
    5. return num;
    6. };
    7. const num = NumericalProcessing(100)
    8. console.log(num)