System.Frac

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function Frac(const X: Extended): Extended;

C++

extern DELPHI_PACKAGE Extended __fastcall Frac(const Extended X);

Properties

Type Visibility Source Unit Parent
function public
System.pas
System.hpp
System System

Description

Returns the fractional part of a real number.

In Object Pascal code, the Frac function returns the fractional part of the argument X.

X is a real-type expression. The result is the fractional part of X; that is, Frac(X) = X - Int(X).

See Also

Code Examples