好像没问题。Floor定义在math单元。-----Delphi syntax:function Floor(const X: Extended): Integer;C++ syntax:extern PACKAGE int __fastcall Floor(const Extended X);DescriptionCall Floor to obtain the highest integer less than or equal to X. For example:Floor(-2.8) = -3Floor(2.8) = 2Floor(-1.0) = -1Note: The absolute value of X must be less than MaxInt.