Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

how to get percents from 2 numbers

$
0
0
so I have tried this:
new percents = floatround( num1 / num2 * 100 );
but everytime I do this it returns 0, espect if num1 = num2 it returns 100
so maybe someone knows how to do this in pawn.
also tried without floatround function but no success

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>