language.thousands
Thousands separator.
Description
DataTables' built in number formatter (formatNumber
) is used to format large numbers that are used in the table information. By default a comma is used, but this can be trivially changed to any other character you wish with this parameter, suitable for any locality, or set to an empty string if you do not which to have a thousands separator character.
Please note that unlike the language.decimal
option, the thousands separator option is used for output of information only (specifically the info
option). Changing it does not effect how DataTables reads numeric data.
Type
This option can be given in the following type(s):
Default
- Value:
,
Example
Set thousands separator to be a quote mark:
new DataTable('#myTable', {
language: {
thousands: "'"
}
});
Related
The following options are directly related and may also be useful in your application development.