DHTMLX Docs & Samples Explorer

Index
dhtmlxgrid
API Methods

### setNumberFormat(mask, cInd, p_sep, d_sep)

Required library edition:
Required library file: dhtmlxgrid.js

set mask for formatting numeric data (works for “edn”, “ron” excell only)

- mask - numeric mask; for example 0,000.00 - 1,234.56
- cInd - column index
- p_sep - char used as decimal separator (point by default)
- d_sep - char used as groups part separator (comma by default)

       mygrid.setNumberFormat("0,000.00",index,".",",");

See also: setDateFormat

Related articles:

- Formatting Numeric Values