private float FixPrecisionErrors(float f) { float num = Mathf.Round(f); if (Mathf.Abs((float) (f - num)) < 0.0001f) { return num; } return f; }