how to get percents from 2 numbers
#1

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
Reply


Messages In This Thread
how to get percents from 2 numbers - by JustNothing - 26.12.2017, 16:12
Re: how to get percents from 2 numbers - by Lucases - 26.12.2017, 21:04
Re: how to get percents from 2 numbers - by GaByM - 26.12.2017, 21:20
Re: how to get percents from 2 numbers - by Lucases - 26.12.2017, 21:47
Re: how to get percents from 2 numbers - by JustNothing - 26.12.2017, 22:53

Forum Jump:


Users browsing this thread: 1 Guest(s)