PHP: How to add leading zeros/zero padding to float via sprintf()?

前端 未结 2 1230
野的像风
野的像风 2020-12-16 11:51

I\'m using sprintf() to get a formatted string of some float numbers with a certain precision. In addition, I wanted to add leading zeros to make all numbers even in length.

2条回答
提交回复
热议问题