Multiplying to a Decimal Number
#9

Quote:
Originally Posted by vIBIENNYx
Посмотреть сообщение
Create a new float variable and assign the value as 0.1, then keep SellPrice as a float and do the equation that way.
A bit of noobish here, but would I do it like this?
pawn Код:
new Float:multi;
    multi = 0.1;
    new Float:SellPrice = AHouseData[HouseID][HousePrice] * multi;
    return floatround(SellPrice);
Reply


Messages In This Thread
Multiplying to a Decimal Number - by Neil. - 11.02.2013, 06:13
Respuesta: Multiplying to a Decimal Number - by admantis - 11.02.2013, 06:16
Re: Respuesta: Multiplying to a Decimal Number - by Neil. - 11.02.2013, 06:20
Re: Multiplying to a Decimal Number - by Sasoft - 11.02.2013, 06:55
Re: Multiplying to a Decimal Number - by Neil. - 11.02.2013, 07:04
Re: Multiplying to a Decimal Number - by vIBIENNYx - 11.02.2013, 07:09
Respuesta: Multiplying to a Decimal Number - by kirk - 11.02.2013, 07:15
Re: Multiplying to a Decimal Number - by denNorske - 11.02.2013, 07:23
Re: Multiplying to a Decimal Number - by Neil. - 11.02.2013, 07:24
Re: Multiplying to a Decimal Number - by Sinner - 11.02.2013, 07:30

Forum Jump:


Users browsing this thread: 1 Guest(s)