Round double to top - C#
问题描述:
我有一个像1,01这样的双数字,我想在它有一个供应过剩时使它成为2?Round double to top - C#
double number1 = 1,01
double number2 = 1,1
double number3 = 1,00000001
这些都必须在2
我有一个像1,01这样的双数字,我想在它有一个供应过剩时使它成为2?Round double to top - C#
double number1 = 1,01
double number2 = 1,1
double number3 = 1,00000001
这些都必须在2
像Math.Ceil()? – Dan 2012-04-04 12:29:18
您需要了解的所有信息可以在http://*.com/questions/14/whats-the-difference-between-math-floor-and-math-truncate-in-net/580252#580252中找到。 – paxdiablo 2012-04-04 12:38:23