为什么在bcb6找不到floor函数

andyboy 2003-12-03 09:13:03
在bcb5是有的
...全文
59 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
constantine 2003-12-03
  • 打赏
  • 举报
回复
是啊
crzman37 2003-12-03
  • 打赏
  • 举报
回复
f大写就OK了
Wingsun 2003-12-03
  • 打赏
  • 举报
回复
大写的F吧
Floor

Rounds variables toward negative infinity.

Unit

Math

Category

Arithmetic routines

extern PACKAGE int __fastcall Floor(constExtended X);

Description

Call Floor to obtain the highest integer less than or equal to X. For example:

Floor(-2.8) = -3

Floor(2.8) = 2

Floor(-1.0) = -1

Note: The absolute value of X must be less than MaxInt.
jb9802 2003-12-03
  • 打赏
  • 举报
回复
这个问题我也遇见过,包含一下头文件就行了:#include <math.h>
在BCB5下会自动包含的在BCB6下要手动的包含,也不知道为什么。
natasha 2003-12-03
  • 打赏
  • 举报
回复
Floor
=====================
Rounds variables toward negative infinity.

Unit
Math

Category
Arithmetic routines

extern PACKAGE int __fastcall Floor(constExtended X);

Description
Call Floor to obtain the highest integer less than or equal to X. For example:
Floor(-2.8) = -3
Floor(2.8) = 2
Floor(-1.0) = -1

Note: The absolute value of X must be less than MaxInt.
jbz 2003-12-03
  • 打赏
  • 举报
回复
在bcb6可以找到floor函数的,大小写的都有,按F1就可以看到.
踏岸寻柳 2003-12-03
  • 打赏
  • 举报
回复
不可能的,floor函数是标准C里面的。
我觉得BCB对标准C支持的还是蛮好的,试一试加入头文件:
#include <math.h>

13,826

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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