need some info
#1

hi guys,
I don't know how to explain but:
if I use integer values like 29 and 5, message shows me that ratio of these numbers are 5 but I need that it shows 5.8.
So, how I should do that?
Reply
#2

pawn Код:
printf("%0.2f", float(29)/float(5) );
or:
pawn Код:
new Float:Ratio;
Ratio = float(29)/float(5);
printf("%0.2f", Ratio);
I hope this helps you.

Jeffry
Reply
#3

thx it helps.
Reply
#4

or just

pawn Код:
printf("%0.2f", 29.0 / 5.0);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)