dist/parsers.js
function parseNumber(s) {
  s = String(s).replace(/[^\d-.]/g, '').replace(/\.$/, '');
  if (!s.match(NUMBER_RE)) {
    return null;
  }
  return parseFloat(s, 10);
}
function parseNumber(s) {
  s = String(s).replace(/[^\d-.]/g, '').replace(/\.$/, '');
  if (!s.match(NUMBER_RE)) {
    return null;
  }
  return parseFloat(s, 10);
}
Public: Parses a string containing a number.  s - The string to parse.  Returns a number or `null` if parsing fails.