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?
解决方案 »
- 用ADOQuery如何效率的把SQL2000中的某表一些字段数据存到ACCESS中?
- 请问del键的键值是多少?
- 基础问题??
- 新手上路:delphi中怎样继承?
- 如何用delphi程序停止win2000等nt系统的共享目录!谢谢...
- 知道这个问题很简单,但总是不太明白,一个有关查询的具体问题?请各位高手帮忙参考^_^
- 求助!!
- 如何将数组中所有的值为0的项去掉?
- DOS下如何截图??请高手指点
- 有谁能告诉我 TeamSource 怎么用吗?
- 我想实现程序象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入