Hello.

I remember, in Delphi there was a function (of type insert ), which would allow to insert a certain character into the whole line through a certain number of characters.

Or am I confusing something, I was searching, but I did not find it.

For example:

Insert a comma every 3 characters in line 128883684596 ,
Result: 128,883,684,596

    1 answer 1

    Insert and have: help .

    After a certain number was not, but written in 5 minutes. based on this.

    Well, or if the bit is more or less known, you can do this:

    S:='128883684596'; ff:=StrToInt64(S); Result:=FormatFloat('#,###,###.###', ff); 

    If instead of commas there are points, you can configure it by passing the third parameter TFormatSettings.

    • Just what you need :-) - Konstantin78