Round Up a double to int

后端 未结 4 2085
执笔经年
执笔经年 2020-12-20 11:01

I have a number (\"double\") from int/int (such as 10/3).

What\'s the best way to Approximation by Excess and convert it to int on C#?

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-20 11:30

    Consider 2.42 , you can say it's 242/100 btw you can simplify it to 121/50 .

提交回复
热议问题