delphi 帮助里的 RoundTo 的帮助
来源:互联网 发布:tomcat linux内核优化 编辑:程序博客网 时间:2024/06/10 12:34
Rounds a floating-point value to a specified digit or power of ten using 揃anker抯 rounding?
Unit
Math
Category
Arithmetic routines
type TRoundToRange = -37..37;
function RoundTo(const AValue: Double; const ADigit: TRoundToRange): Double;
Description
Call RoundTo to round AValue to a specified power of ten.
AValue is the value to round.
ADigit indicates the power of ten to which you want AValue rounded. It can be any value from ?7 to 37 (inclusive).
RoundTo uses 揃anker抯 Rounding?to determine how to round values that are exactly midway between the two values that have the desired number of significant digits. This method rounds to an even number in the case that AValue is not nearer to either value.
The following examples illustrate the use of RoundTo:
Expression Value
RoundTo(1234567, 3) 1234000
RoundTo(1.234, -2) 1.23
RoundTo(1.235, -2) 1.24
RoundTo(1.245, -2) 1.24
Note: The behavior of RoundTo can be affected by the Set8087CW procedure or SetRoundMode function.
- delphi 帮助里的 RoundTo 的帮助
- Delphi帮助里的虚拟键值表
- linux里的帮助命令
- 翻译一半的Delphi汇编帮助
- CPropertySheet里的帮助按钮如何去掉
- linux帮助里各种符号的含义
- delphi的函数round、trunc、ceil、floor 和RoundTo
- Delphi 使用帮助提示(Hint)制作简单即时的系统帮助
- Delphi 使用CHM文件制作系统帮助文档(上下文感知帮助的制作)
- Delphi程序与Chm帮助关联的简单实现
- Delphi应用程序与Chm帮助关联的简单实现(源代码)
- Delphi程序使用Chm帮助的一点修改
- Delphi中文帮助[1]Delphi7的新特性
- Delphi程序与Chm帮助关联的简单实现
- Delphi应用程序与Chm帮助关联的简单实现(源代码)
- Delphi 2005帮助文档无法使用的解决办法
- Delphi 2005帮助文档无法使用的解决办法
- Delphi程序与Chm帮助关联的简单实现
- 设计模式笔记(12 STRATEGY & TEMPLATE METHOD)
- 对部分网友的回复
- .NET应用中诸多有用的工具:
- C/C++语言void及void指针深层探索
- 在DBGRID中回车到下一格已到最后一格则换行
- delphi 帮助里的 RoundTo 的帮助
- ajax
- 关于软件项目估算、度量的一些想法
- type解析
- JDK1.5.0+Eclipse3.1+MyEclipse4.1+Tomcat5.0.28 JSP开发环境配置笔记
- 简单的table列头排序
- 爱上博客
- 《C++编程规范》笔记(组织和策略)
- 看到别人都有了博客,心里痒痒。