Posts: 34
Threads: 2
Joined: Sep 2012
Reputation:
0
%d Is For Numbers And %s Is To Announce a Name Or Item, ILl find out %i cause ive never used that one
Posts: 372
Threads: 44
Joined: Feb 2011
Reputation:
0
for example:
%d - doube: 2.1 or 23.5
%i - integer: 32 or 49
Posts: 434
Threads: 80
Joined: Oct 2008
Reputation:
0
So, there isn't a big difference,
i can use %i tho show 500000 as i can use %d ?
Sometimes my sql request bug,
format(query, sizeof(query), "UPDATE `"db_bizs"` SET Price=%i WHERE ID=%d",30000,1);
and it update the price of the biz 1 to 0.
So i ask it could become from the %i
Max
Posts: 1,781
Threads: 13
Joined: Sep 2009
Reputation:
0
yes, if you want to format a string with %i or %d, then you may use any variant.
any (negative) number (roughly) ranging from -2000000000 upto 2000000000 will work.
Posts: 772
Threads: 52
Joined: Aug 2010
Reputation:
0
d = decimal
i = integer
Both do the same.