From Clomosy Docs
No edit summary |
ClomosyAdmin (talk | contribs) No edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<div class="alert alert-ligth border border-3 border-primary-subtle rounded-5 p-4 shadow-sm" role="alert"> | |||
function Frac(const X: Extended): Extended; | |||
</div> | |||
The Frac function returns the fractional part of a floating point number. | The Frac function returns the fractional part of a floating point number. | ||
<b>Example</b><br> | |||
:'' | <pre> | ||
var | |||
numberValue : Integer; | |||
{ | |||
numberValue = 12.75; | |||
ShowMessage(' Frac(12.75) = '+FloatToStr(Frac(numberValue))); | |||
} | |||
</pre> | |||
<b>Output:</b><br> | |||
<div class="alert alert-success" role="alert" data-bs-theme="light"> | |||
Frac(12.75) = 0,75 | |||
</div> | |||
<h2> See Also </h2> | |||
* [[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.}} | |||
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