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:|description=Learn how to use the Frac function in Clomosy to extract the fractional part of a floating-point number for precise calculations.}}

Revision as of 10:58, 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