rem: tmp = (int32)floor(n); result = (float)tmp / (max);  return result;
add: int32 tmp = (int32)floor(n); return (float)tmp / (max);
context: float round(float n, int32 max){	float result;	int32 tmp;	max *= 10;		n *= max;	n += 0.5;		tmp = (int32)floor(n);	result = (float)tmp / (max);		return result;}