摘要:
C#DECIMAL结构取整方法总结usingSystem;usingSystem.Collections.Generic;usingSystem.Text;namespaceConsoleApplication1{classProgram{staticvoidMain(string[]args){//Floor向负无穷方向舍入为最接近的整数Console.WriteLine(decimal.Floor(-1.3m));//-2Console.WriteLine(decimal.Floor(3.5m));//3Console.WriteLine(decimal.Floor(4m));//4//T 阅读全文