BUG Float x.x99999
#1

Some values, such as 25.8, are always 25.7(99999), but values like 4.8 show 4.8(00000)

Код:
new Float:amount = ConvertFloatToOneDP(floatstr(inputtext));

stock Float:ConvertFloatToOneDP(Float:value)
{
	new Float:result;
	new tempInt;
	result = value * 10;
	tempInt = floatround(result, floatround_floor);
	result = float(tempInt);
	result = result / 10;

	result += 0.0000001;
	
	return result;
}




Reply


Messages In This Thread
BUG Float x.x99999 - by bigtigerbeee - 05.04.2018, 17:59
Re: BUG Float x.x99999 - by rfr - 05.04.2018, 20:27
Re: BUG Float x.x99999 - by CodeStyle175 - 05.04.2018, 21:21
Re: BUG Float x.x99999 - by AmigaBlizzard - 05.04.2018, 23:12
Re: BUG Float x.x99999 - by bigtigerbeee - 06.04.2018, 03:39

Forum Jump:


Users browsing this thread: 1 Guest(s)