请教高手,delphi浮点型怎么表示?

dulcet 2002-05-20 04:30:41
请教高手,delphi浮点型怎么表示?
...全文
1206 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
sanwolf 2002-05-20
  • 打赏
  • 举报
回复
更新太快了,才找到,楼上各位说的很详细了。我就讨点分吧。
torble 2002-05-20
  • 打赏
  • 举报
回复
Billy_Chen28 2002-05-20
  • 打赏
  • 举报
回复 1
4字节浮点数 single
6字节浮点数 real48
8字节浮点数 double
10字节浮点数 extnded
sanwolf 2002-05-20
  • 打赏
  • 举报
回复
float
lizhenjia 2002-05-20
  • 打赏
  • 举报
回复
real
double
single
sanwolf 2002-05-20
  • 打赏
  • 举报
回复
同意楼上的观点。查查书《Delphi开发人员指南》得到得更详细。
outer2000 2002-05-20
  • 打赏
  • 举报
回复
......
dreamfan 2002-05-20
  • 打赏
  • 举报
回复
real
double
王集鹄 2002-05-20
  • 打赏
  • 举报
回复
1 //整数
1.0 //浮点数
superljj 2002-05-20
  • 打赏
  • 举报
回复
A real type defines a set of numbers that can be represented with floating-point notation. The table below gives the ranges and storage formats for the fundamental real types.

Type Range Significant digits Size in bytes
Real48 2.9 x 10^–39 .. 1.7 x 10^38 11–12 6
Single 1.5 x 10^–45 .. 3.4 x 10^38 7–8 4
Double 5.0 x 10^–324 .. 1.7 x 10^308 15–16 8
Extended 3.6 x 10^–4951 .. 1.1 x 10^4932 19–20 10
Comp –2^63+1 .. 2^63 –1 19–20 8
Currency –922337203685477.5808.. 922337203685477.5807 19–20 8
The generic type Real, in its current implementation, is equivalent to Double.

Type Range Significant digits Size in bytes
Real 5.0 x 10^–324 .. 1.7 x 10^308 15–16 8


一般情况用Extended

5,392

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧