Contents | Prev | Next

7.2.68 The trunc function

Description

The trunc function truncates the parameter passed to it (i.e. returns the integer number part of the the parameter). The type of the value returned by this function is always integer.

Parameter

The trunc function's only parameter is an expression of real type.

Example

   trunc(7.234)  returns 7

Portability

Operating Systems: All
Standard Pascal: Yes

Contents | Prev | Next