Difference between revisions of "Frac"

From Lazarus wiki
Jump to navigationJump to search
(Fract returns the fractional part, not the mantissa)
(Adjusted description to match official fpc docs.)
Line 1: Line 1:
 
{{Trunc}}
 
{{Trunc}}
  
Function '''Frac''' returns the fractional part of the argument X.
+
Function '''Frac''' returns the fractional part of the argument X, where X is a floating point value.  
X is a real-type expression.  
 
  
 
Declaration
 
Declaration
  
 
<syntaxhighlight>
 
<syntaxhighlight>
  function Frac(X: Real): Real;
+
  function Frac(X: ValReal): ValReal;
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 22:37, 17 August 2019

English (en)

Function Frac returns the fractional part of the argument X, where X is a floating point value.

Declaration

 function Frac(X: ValReal): ValReal;

See also: