function numberFormatter(row,cell,value,col,data) {
    var rawValue = data.get(col.field);

    if (!rawValue || rawValue === "") {
      if (col.allowNull) return null;
      rawValue = 0;
    }

    var numberValue;
    if (col.precision) {
      numberValue = (typeof rawValue === 'number') ?
        rawValue : parseFloat(rawValue);
      numberValue = numberValue.toFixed(col.precision);
    }
    else {
      numberValue = (typeof rawValue === 'number') ?
        rawValue.toFixed(0) : parseFloat(rawValue).toFixed(0);
    }

    if (col.separated) {
      var separator = getSeparator(col);
      return thousandsSeparated(numberValue,separator);
    }
    else {
      return String(numberValue);
    }
  }
/**
   * Parameters:
   * - precision (default 0 formats as integer)
   * - separated (true for comma-separated, or pass separator string)
   * - allowNull (returns null for blank values; othewise returns zero)
   */
- precision (default 0 formats as integer)
- separated (true for comma-separated, or pass separator string)
- allowNull (returns null for blank values; othewise returns zero)
- precision ( default 0 formats as integer ) - separated ( true for comma - separated or pass separator string ) - allowNull ( returns null for blank values ; othewise returns zero )
function numberFormatter(row,cell,value,col,data) {
    var rawValue = data.get(col.field);
    if (!rawValue || rawValue === "") {
      if (col.allowNull) return null;
      rawValue = 0;
    }
    var numberValue;
    if (col.precision) {
      numberValue = (typeof rawValue === 'number') ?
        rawValue : parseFloat(rawValue);
      numberValue = numberValue.toFixed(col.precision);
    }
    else {
      numberValue = (typeof rawValue === 'number') ?
        rawValue.toFixed(0) : parseFloat(rawValue).toFixed(0);
    }
    if (col.separated) {
      var separator = getSeparator(col);
      return thousandsSeparated(numberValue,separator);
    }
    else {
      return String(numberValue);
    }
  }
function numberFormatter ( row , cell , value , col , data ) { var rawValue = data . get ( col . field ) ; if ( ! rawValue || rawValue === "" ) { if ( col . allowNull ) return null ; rawValue = 0 ; } var numberValue ; if ( col . precision ) { numberValue = ( typeof rawValue === 'number' ) ? rawValue : parseFloat ( rawValue ) ; numberValue = numberValue . toFixed ( col . precision ) ; } else { numberValue = ( typeof rawValue === 'number' ) ? rawValue . toFixed ( 0 ) : parseFloat ( rawValue ) . toFixed ( 0 ) ; } if ( col . separated ) { var separator = getSeparator ( col ) ; return thousandsSeparated ( numberValue , separator ) ; } else { return String ( numberValue ) ; } }
Parameters:
 - precision (default 0 formats as integer)
 - separated (true for comma-separated, or pass separator string)
 - allowNull (returns null for blank values; othewise returns zero)
Parameters : - precision ( default 0 formats as integer ) - separated ( true for comma - separated or pass separator string ) - allowNull ( returns null for blank values ; othewise returns zero )