in reply to Re: Adding Leading Zeros
in thread Adding Leading Zeros

I have a silly question here. Why does the following code return 000000001739 and how do I fix this? perl -e 'printf("%012d", 17.40 * 100);'

Replies are listed 'Best First'.
Re^3: Adding Leading Zeros
by Athanasius (Archbishop) on Mar 15, 2016 at 09:37 UTC