private float CalculDemiLePlusProche(float value) { if (value < 0) return ((int)value) - 0.5f; return ((int)value) + 0.5f; } }