5取双,我举个例子吧:round(1.5)=2
round(2.5)=2也就是说,如果整数部分是单数,进之,双数则弃之再看看 Delphi 帮助:Round returns an Int64 value that is the value of X rounded to the nearest
whole number. If X is exactly halfway between two whole numbers, the result
is always the even number. This method of rounding is often called
揃anker抯 Rounding?
round(2.5)=2也就是说,如果整数部分是单数,进之,双数则弃之再看看 Delphi 帮助:Round returns an Int64 value that is the value of X rounded to the nearest
whole number. If X is exactly halfway between two whole numbers, the result
is always the even number. This method of rounding is often called
揃anker抯 Rounding?
解决方案 »
- 调用webservice
- 条马枪的开发包
- 用过Report Builder的大虾请进
- 设置EXCEL表某列的宽度
- 需求一份软件(asp)项目合同样本
- 请问如何使用DELPHI编制各种文档模板和打印模板?如何调用它们?
- 如何知道stringgrid单击的是那一行?那一列?
- 怎么把String转换到PChar?立刻给分.
- 在dbgrid中编辑数据,如何捕捉异常?
- 请问高手:能否能够实现从一台机子上的程序控制另一台机子上程序的运行,比如,被控制机窗体上的按钮被按下,谢谢!
- 我想实现程序象OICQ一样最小化时放在右下角,并且图标也可以控制一闪一闪的,如何做,最好有DEMO,谢谢
- 谁知道怎样自定义Win98的安装程序.......
假设保留两位有效数字
1.546 ---- 1.5 4舍
1.567 ---- 1.6 6入
1.554 ---- 1.5 5取双 4舍
1.556 ---- 1.6 5取双 6入