RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.Frac Function

Returns the fractional part of a real number.

Pascal
function Frac(const X: Extended): Extended;
C++
Extended Frac(const Extended X);

System

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). 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!