in reply to sprintf() returning incorrect value
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; [download]
$nfc_amt = "0$nfc_amt"; # or $nfc_amt = '0' . nfc_amt; [download]