Very Simple Question - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Very Simple Question (
/showthread.php?tid=98345)
Very Simple Question -
Paladin - 20.09.2009
Hey I have a Question, I'd appreciate it if you don't link me to the Search button because I did search and found nothing, however, if you are able to find something similar to this that was answered please link me.
Simple easy question though.
Is it possible in a string where I put the %f to make it in such a way that it doesnt display the numbers after the period without creating a whole new string?
(Example: 5.005235 becomes 5)
Re: Very Simple Question -
brett7 - 20.09.2009
do like %.3f
that will round to 3 deciaml places in c it should do the same for pawn
Re: Very Simple Question -
Correlli - 20.09.2009
Quote:
Originally Posted by Micro [Lethotas.com
]
(Example: 5.005235 becomes 5)
|
https://sampwiki.blast.hk/wiki/Floatround