Feb 5, 2008 #1 kevin197 Programmer Mar 21, 2002 88 GB I'm trying to get my price like 99.99 to have spaces at the front to pad it out to 10 bits. I tryed this $netprice0 = sprintf ('%10d.%2f',$netprice0); But get 99.0.000000 I'm after " 99.99" Can anyone help?
I'm trying to get my price like 99.99 to have spaces at the front to pad it out to 10 bits. I tryed this $netprice0 = sprintf ('%10d.%2f',$netprice0); But get 99.0.000000 I'm after " 99.99" Can anyone help?
Feb 5, 2008 Thread starter #2 kevin197 Programmer Mar 21, 2002 88 GB Done it $netprice0 = sprintf ('%10.2f',$netprice0); Upvote 0 Downvote