Online Shopping : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to
Did You Find This Entry Useful?

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


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);