Posted on 2012-03-20
i using below code to format numbers
roundNumber(formatNumbers($number, 3), 2).toFixed(2);
the issue is that the $number can come as which is breaking the script. how must i rewrite the code to to check if the $number contains the text and if yes change it to 000 else use the value of $number?