function parsePercent(s) {
  var n = parseNumber(String(s).replace('%', ''));
  return n == null ? null : n / 100;
}
function parsePercent(s) {
  var n = parseNumber(String(s).replace('%', ''));
  return n == null ? null : n / 100;
}
function parsePercent ( s ) { var n = parseNumber ( String ( s ) . replace ( '%' , '' ) ) ; return n == null ? null : n / 100 ; }
Public: Parses a string containing a percent.  s - The string to parse.  Returns a number or `null` if parsing fails.
Public : Parses a string containing a percent . s - The string to parse . Returns a number or null if parsing fails .