![]() |
|
|
+ Search |
![]()
|
Mar 24th, 2008 20:03
ha mo, j. kelley, Himanshu Jain,
The precision specifier consists of dot( . )followed by a number
representing the precision you want to apply.it should be placed before
the conversion specifier:
Printf( â%04.2fâ , 33);
.....
Alternately you could use the php function number_format(). For example
printf("%s", number_format((1/3), 2);
would dispay .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