请问一下,取整的函数是哪个?实在记不住,也找不出来了。(10分)

  • 主题发起人 主题发起人 didaland
  • 开始时间 开始时间
Truncates a real number to an integer.

Unit

System

Category

arithmetic routines

function Trunc(X: Extended): Int64;

Description

The Trunc function truncates a real-type value to an integer-type value. X is a real-type expression. Trunc returns an Int64 value that is the value of X rounded toward zero.

If the truncated value of X is not within the Int64 range, an EInvalidOp exception is raised.
 
后退
顶部