Difference between revisions of "Frac"

From Lazarus wiki
Jump to navigationJump to search
m (Fixed syntax highlighting)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Trunc}}
 
{{Trunc}}
  
Function '''Frac''' return mantissa 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 lang=pascal>
  function Frac(X: Real): Real;
+
  function Frac(X: ValReal): ValReal;
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 13: Line 12:
 
* [[Int]]
 
* [[Int]]
 
* [[Round]]
 
* [[Round]]
* [[Frac]]
+
* [[Trunc]]
 
 
[[Category:Pascal]]
 

Latest revision as of 05:55, 16 February 2020

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: