博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Math.Celing、Math.Floor、Math.DivRem与Math.BigMul
阅读量:7035 次
发布时间:2019-06-28

本文共 459 字,大约阅读时间需要 1 分钟。

返回大于或等于指定数字的最小整数。例如:

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

转载地址:http://hbnal.baihongyu.com/

你可能感兴趣的文章
XNA 学习网站
查看>>
兼容测试-1.1基础,用例设计
查看>>
前端之Vue组件-55
查看>>
Deep Learning 学习笔记(一)——softmax Regression
查看>>
用两个栈模拟无限长队列
查看>>
Welcome to the world of Java! ^O^ cmd + notepad + HelloWorld
查看>>
ISCC 2018——write up
查看>>
py 的 第 29 天
查看>>
c#之循环效率
查看>>
hdu1176免费馅饼
查看>>
《面向对象程序设计课程学习进度条》
查看>>
[转]nginx反向代理获取用户真实ip
查看>>
外边距合并与溢出
查看>>
单例模式的C++实现
查看>>
memory_profiler的使用
查看>>
Vue过渡动画运用transition
查看>>
AIDL示例
查看>>
HTML字符实体
查看>>
ubuntu 清理系统垃圾与备份
查看>>
Css3笔记
查看>>