Substr.IntToStr Method

Overload List

#SignatureDescription
1function IntToStr(const Value: Int64): Substring; overload; inline;
2function IntToStr(const Value: Integer): Substring; overload; inline;The decimal text of Value.

Overload 1: function IntToStr(const Value: Int64): Substring; overload; inline;

#NameTypeDescription
1ValueInt64

Returns: Substring

Overload 2: function IntToStr(const Value: Integer): Substring; overload; inline;

The decimal text of Value.

#NameTypeDescription
1ValueInteger

Returns: Substring

Remarks:

Call it qualified: Substr.IntToStr(k).

Examples

Both forms, each named by its unit.

uses Substr, System.SysUtils;

procedure Example;
begin
    Assert(Substr.IntToStr(42) = '42');
    Assert(Substr.IntToStr(Int64(-9000000000)) = '-9000000000');
    Assert(System.SysUtils.IntToStr(42) = '42');
end;