how to get a % of a number
#1

e.g how to get 45% of 215?

in a calculator i would use 215 x 45%

but how to do in it pawn?
Reply
#2

In a varible,

new final;

final = 245 * 45/100;
Reply
#3

( 45 / 100 ) * 215
Reply
#4

215 * 45/100
Reply
#5

45/100 * 215
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)