Problem with integers and gettings percentages from them
#2

Take note: integer divided by integer remains integer. Any would-be fractional part is discarded. Use floating point arithmetic to do the calculation (this can be as simple as adding .0 to the operands). Then use floatround to save the value to their account.
Reply


Messages In This Thread
Problem with integers and gettings percentages from them - by Josh_Lotus - 09.01.2016, 15:50
Re: Problem with integers and gettings percentages from them - by Vince - 09.01.2016, 17:04
Re: Problem with integers and gettings percentages from them - by PrO.GameR - 09.01.2016, 21:40
Re: Problem with integers and gettings percentages from them - by Josh_Lotus - 09.01.2016, 23:07

Forum Jump:


Users browsing this thread: 1 Guest(s)