How to round up value C# to the nearest integer?

后端 未结 9 2012
慢半拍i
慢半拍i 2020-11-28 09:02

I want to round up double to int.

Eg,

double a=0.4, b=0.5;

I want to change them both to integer.

so that

         


        
9条回答
提交回复
热议问题