17.05.2017, 08:04
Try this:
PHP код:
new strc[128],Float:realnum,decimals;
format(strc,sizeof(strc),"%%.%df",decimals); //output %%.2f
format(strc,sizeof(strc),strc,realnum); //output %.2f