cast rounding defaults
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Is there way to make int i = (int)3.6; give a rounded as opposed to floored result? Some global setting?
Try int i = (int)Math.Round(3.6); :) ----------------------------- Try my Batch Image Processing Software
Read my DirectX 8 Tutorials