SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: IstuntmanI
Forum: Discussion 02/05/2017, 05:51 PM
Replies: 709
Views: 165,958
Posted By IstuntmanI
Re: Today I learned - Share your newly found knowledge!

Funny how you could think about that. Imagine a vector of size 1000+ . :lol: It was a pretty unexpected question and a smart observation for his example. I guess that this made me smile more than it...
Forum: Discussion 22/11/2016, 12:39 AM
Replies: 709
Views: 165,958
Posted By IstuntmanI
Re: Respuesta: Today I learned - Share your newly found knowledge!

Or just -val.

new val = -23;
printf("%i", -(val) * 1);
=
new val = -23;
printf("%i", val * -1 );
=
new val = -23;
printf("%i", -val);
Showing results 1 to 2 of 2

 

All times are GMT. The time now is 07:40 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.