From Clomosy Docs
No edit summary |
ClomosyAdmin (talk | contribs) No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 31: | Line 31: | ||
<h2> See Also </h2> | <h2> See Also </h2> | ||
* [[System_Library#Type_Conversion_Functions | Type Conversion Functions]] | * [[System_Library#Type_Conversion_Functions | Type Conversion Functions]] | ||
{{#seo:|title=IntToStr Using in Clomosy - Clomosy Docs}} | |||
{{#seo:|description=Learn how the IntToStr function in Clomosy converts integer and Int64 values into strings for display purposes.}} | |||
Latest revision as of 13:35, 24 December 2024
function IntToStr(Value: Integer):string;
function IntToStr (Value: Int64):string;
The IntToStr function converts an Integer Number or Int64 BigNumber into a string. It has two forms : the latter supporting very large integers. It is normally used for display purposes.
Example
var
NormalInteger : Integer;
BigInteger : Int64;
{
NormalInteger = 1234656789; // Largest possible Integer value
BigInteger = 1234656789123465681; // Largest possible Int64 value
ShowMessage('NormalInteger : '+IntToStr(NormalInteger));
ShowMessage('BigInteger : '+IntToStr(BigInteger));
ShowMessage('Calculated number : '+IntToStr(27 * 4));
}
Output:
NormalInteger : 1234656789
BigInteger : 1234656789123465681
Calculated number : 108