Contents | Prev | Next

7.2.21 The frac function

Description

The frac function returns the fractional part of the parameter passed to it. The type of the value returned by this function is always integer.

Parameter

The frac function's only parameter is the expression of real type whose fractional part is to be returned.

Example

   frac(7.234)  returns 0.234

Portability

Operating Systems: All
Standard Pascal: No

Contents | Prev | Next