floatlog not working good - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: floatlog not working good (
/showthread.php?tid=484016)
floatlog not working good -
GTAItsMe - 28.12.2013
when I'm doing:
Код:
printf("log10 of 100 is: %i", floatlog(100, 10));
I'm getting in the dos box:
log10 of 100 is: 1073741824
Re: floatlog not working good -
Konstantinos - 28.12.2013
It's not integer, but float.
pawn Код:
printf("log10 of 100 is: %f", floatlog(100, 10));
Output: log10 of 100 is: 2.000000
Re: floatlog not working good -
GTAItsMe - 29.12.2013
Quote:
Originally Posted by Konstantinos
It's not integer, but float.
pawn Код:
printf("log10 of 100 is: %f", floatlog(100, 10));
Output: log10 of 100 is: 2.000000
|
Oh thanks, I didn't thought about it