salut, j'ai trouvé cette solution sur le net :
Mais quand j'affiche ca ne m'arrondi pas.Code:Math.Round (var,2);
Est ce que quelqun peu m'expliquer ?Code:
1
2
3 decimal res = ((i)/(j*j)); Math.Round (res,2); labelCalIMC.Text = res.ToString() + " kg/m²";