SyntaxFix
Write A Post
Hire A Developer
Questions
I have made this function. It works fine but returns string.
function show_float_val(val,upto = 2){ var val = parseFloat(val); return val.toFixed(upto); }