Show: Delphi C++
Display Preferences

System.Frac

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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 Delphi 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


Personal tools
In Other Languages
Previous Versions
Assistance