Online Shopping : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 1 people (100%) answered Yes
Recently 1 of 1 people (100%) answered Yes

Entry

How would you pad the conversation you effected in question 1 with Zeros so that the part before the decimal point is four characters long?

Mar 24th, 2008 20:03
ha mo, Himanshu Jain,


You can pad the output from printf( ) with the padding spacifier –that
is ,a space or a zero followed by a number representing the number of
characters you want to pad by.
Printf( ”%04f”33);
http://www.tantofa.com
http://www.fantofa.com
http://www.mantofa.com
http://www.tanpola.com
http://www.tampola.com
http://www.yamot.com
http://www.mozmar.com
http://www.templatestemp.com