From Clomosy Docs
ClomosyAdmin (talk | contribs) No edit summary |
ClomosyAdmin (talk | contribs) 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
function Frac(const X: Extended): Extended;
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:
Frac(12.75) = 0,75