Bonjour,
J'ai un problème un peut spécial, j'ai une valeur sortie d'un NumericUpDown (NUP1) si je ne fait pas de math.round dessus, j'ai x chiffre après la virgule. Donc là si j'ai par exemple:
NUP1 = 85.59586;
System.Match.Round(NUP1.Value);
Tout marche pour le mieux.
Mais j'aimerais que si j'ai une valeur sans chiffres après la virgule, j'ai quand même .00 qui vienne après la virgule ce qui n'est pas mon cas pour l'instant..
Exemple:
NUP1 = 85.00
System.Match.Round(NUP1.Value); //égale 85.00 et non 85
Comment faire? Une idée?
Merci d'avance
Partager