From Clomosy Docs

No edit summary
No edit summary
 
Line 24: Line 24:
<h2> See Also </h2>
<h2> See Also </h2>
* [[System_Library#Math_Functions | Math Functions]]
* [[System_Library#Math_Functions | Math Functions]]
{{#seo:|title=Frac in Clomosy - Clomosy Docs}}
{{#seo:|description=Learn how to use the Frac function in Clomosy to extract the fractional part of a floating-point number for precise calculations.}}
{{#seo:|description=Learn how to use the Frac function in Clomosy to extract the fractional part of a floating-point number for precise calculations.}}

Latest revision as of 15:06, 24 December 2024

The Frac function returns the fractional part of a floating point number.

Example

var
   numberValue : Integer;
 
{
   numberValue = 12.75;
   ShowMessage(' Frac(12.75) = '+FloatToStr(Frac(numberValue)));
}

Output:

See Also