14.06.2013, 20:01
Hi there,
I was trying to exchange Int to Float in order to get percentage of a specific amount.
Take a look at this stock:
By following simple math, it should return 0.7; however, it shows 0.
Am I totally wrong here? Or something else causing it.
NOTE: I tried to use Float as well but it gave me the same result: 0.00000....
Does anyone can give me a hand out here? Much appreciated.
I was trying to exchange Int to Float in order to get percentage of a specific amount.
Take a look at this stock:
pawn Код:
stock Calculate()
{
return (70 / 100);
}
Am I totally wrong here? Or something else causing it.
NOTE: I tried to use Float as well but it gave me the same result: 0.00000....
Does anyone can give me a hand out here? Much appreciated.