1#include "Utility.h"
2#include <math.h>
3
4float round(float n, int32 max)
5{
6	max = (int32)pow(10, (float)max);
7
8	n *= max;
9	n += 0.5;
10
11	int32 tmp = (int32)floor(n);
12	return (float)tmp / (max);
13}
14