Sign in Join
FPDoc Onlineexperiment

Numb2USA function

In unit StrUtils

Insert thousand separators.

Declaration

pascal
function Numb2USA(const S: string): string

Arguments

S

String to insert thousand separators in.

Function result

String with thousand separators inserted.

Description

Numb2USA inserts thousand separators in the string S at the places where they are supposed to be, i.e. every 3 digits. The string S should contain a valid integer number, i.e. no digital number. No checking on this is done.

Errors

None.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.