Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个像 1,01 这样的双数,当它供过于求时我想把它变成 2?
double number1 = 1,01 double number2 = 1,1 double number3 = 1,00000001
这些必须是 2
double roundedUp = Math.Ceiling(number);