Math.Celing、Math.Floor、Math.DivRem与Math.BigMul
生活随笔
收集整理的這篇文章主要介紹了
Math.Celing、Math.Floor、Math.DivRem与Math.BigMul
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
返回大于或等于指定數字的最小整數。例如:
double a=Math.Celing(0.00);? //0
double a=Math.Celing(0.40);? //1
double a=Math.Celing(0.60);? //1
double a=Math.Celing(1.00);? //1
double a=Math.Celing(1.10);? //2
?
返回小于或等于指定數字的最大整數。例如:
double g=Math.Floor(1.00);?? //1
double k=Math.Floor(1.90);?? //1
double l=Math.Floor(2.00);?? //1
double m=Math.Floor(2.10);?? //1
?
返回兩個32位有符號整數的商,并將余數作為輸出參數傳遞。例如:
int ys;
double s=Math.DivRem(5,3,out ys);? //s=1;ys=2
?
生成兩個32位數字的完整乘積。例如:
long cj=Math.BigMul(2,3);? //6
轉載于:https://www.cnblogs.com/shy1766IT/p/8157175.html
總結
以上是生活随笔為你收集整理的Math.Celing、Math.Floor、Math.DivRem与Math.BigMul的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: SpringMVC---数据校验
- 下一篇: php设置报错级别