Formatting functions, preserve the specified number of decimal places

sprintf ( ' % .2f ' , $ A)
 // powerful formatting functions
 // result is the string
 // number of decimal places is not enough, padding 0

 

Guess you like

Origin www.cnblogs.com/pansidong/p/11605939.html