Previous: Min function To the Table of Content Next: Npv function

- 4.45.2.45 -
Standard Units
Math Unit
Math Unit Procedures and Functions

Modf function

Targets: MS-DOS, OS/2, Win32


Math Unit

Splits a floating-point value into fractional and integer parts.

Declaration:
function Modf(X: Extended; var Y: Longint): Extended;
function Modf(X: Extended; var Y: Integer): Extended;
Remarks:

The Modf function breaks down the floating-point value X into fractional and integer parts, each of which has the same sign as X.

The signed fractional portion of X is returned. The integer portion is stored as a floating-point value at Y.


Previous: Min function To the Table of Content Next: Npv function
Min function Table of Content Npv function

- 4.45.2.45 -