Mhm %s and %d?
Hello.
I have a horrible problem. I don't know when i must use %s and when use %d. I think this is funny problem but I rest on you. |
Re: Mhm %s and %d?
%s - string
%d - number %i - integer %f - float |
Re: Mhm %s and %d?
And don't forget
%0.2f :) Example for: 6.0 %f displays 6.0000000 %0.2f displays 6.00 |
Re: Mhm %s and %d?
Quote:
|
Re: Mhm %s and %d?
Thanks!
|
Re: Mhm %s and %d?
whats difference between %i - integer and %d - number ? both numbers =o
|
Re: Mhm %s and %d?
To make a number have 0 'fillers' use %02d
Example: Suppose you have a number, 6, and want it to appear as 06 you can use %02d and for 006, %03d. |
Re: Mhm %s and %d?
Quote:
|
| All times are GMT -4. The time now is 01:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.