12.04.2015, 15:42
pawn Код:
stock Float:ConvertFloatToOneDP(Float:value)
{
new Float:result;
new tempInt;
result = value * 10.0;
tempInt = floatround(result);
result = float(tempInt);
result = result / 10.0;
result = result + 0.0000006; // Fixes floating point inaccuracy (e.g. 0.99999999)
return result;
}