En C#, comment arrondir un flottant à l'int proche?Comment contourner un flottant jusqu'à l'int le plus proche en C#?
Je vois Math.Ceiling et Math.Round, mais ceux-ci retournent un nombre décimal. Est-ce que j'utilise l'un d'entre eux puis cast à un Int?
Voir http://stackoverflow.com/questions/14/whats-the-difference-between-math-floor-and-math-truncate-in-net pour un résumé complet. – paxdiablo