in reply to sprintf() returning incorrect value

Hi ppeel

Welcome to the monastery!

UPDATE: Sorry, I totally misread your problem.

You got what you described. If you need a single leading zero you can get this way:

$nfc_amt = "0$nfc_amt"; # or $nfc_amt = '0' . nfc_amt;