I want to format a floating number, like this :
- Input : 1.7
- output : 01.70
I have already tried below function.
sprintf("%02.02f", 1.7);
Please help.
I want to format a floating number, like this :
I have already tried below function.
sprintf("%02.02f", 1.7);
Please help.
Try this
sprintf('%05.2f', 1.7);