code: function (formattedData, model) {
      formattedData = formattedData.trim();
  
      if (formattedData === '') return null;
  
      var rawData = '';
  
      var thousands = formattedData.split(this.orderSeparator);
      for (var i = 0; i < thousands.length; i++) {
        rawData += thousands[i];
      }
  
      var decimalParts = rawData.split(this.decimalSeparator);
      rawData = '';
      for (var i = 0; i < decimalParts.length; i++) {
        rawData = rawData + decimalParts[i] + '.';
      }
  
      if (rawData[rawData.length - 1] === '.') {
        rawData = rawData.slice(0, rawData.length - 1);
      }
  
      var result = (rawData * 1).toFixed(~~this.decimals) * 1;
      if (_.isNumber(result) && !_.isNaN(result)) return result;
    }
docs: Takes a string, possibly formatted with `orderSeparator` and/or
  `decimalSeparator`, and convert it back to a number.
  
  @member Backgrid.NumberFormatter
  @param {string} formattedData
  @param {Backbone.Model} model Used for more complicated formatting
  @return {number|undefined} Undefined if the string cannot be converted to
  a number.