odoo-13.0/addons/web/static/src/js/fields/field_utils.js
/**
 * Parse a String containing number in language formating
 *
 * @param {string} value
 *                The string to be parsed with the setting of thousands and
 *                decimal separator
 * @returns {float|NaN} the number value contained in the string representation
 */
Parse a String containing number in language formating
@param {string} value
The string to be parsed with the setting of thousands and
decimal separator
@returns {float|NaN} the number value contained in the string representation
Parse a String containing number in language formating @param { string } value The string to be parsed with the setting of thousands and decimal separator @returns { float|NaN } the number value contained in the string representation
function parseNumber(value) {
    if (core._t.database.parameters.thousands_sep) {
        var escapedSep = _.str.escapeRegExp(core._t.database.parameters.thousands_sep);
        value = value.replace(new RegExp(escapedSep, 'g'), '');
    }
    if (core._t.database.parameters.decimal_point) {
        value = value.replace(core._t.database.parameters.decimal_point, '.');
    }
    return Number(value);
}
function parseNumber ( value ) { if ( core . _t . database . parameters . thousands_sep ) { var escapedSep = _ . str . escapeRegExp ( core . _t . database . parameters . thousands_sep ) ; value = value . replace ( new RegExp ( escapedSep , 'g' ) , '' ) ; } if ( core . _t . database . parameters . decimal_point ) { value = value . replace ( core . _t . database . parameters . decimal_point , '.' ) ; } return Number ( value ) ; }
Parse a String containing number in language formating
 @param {string} value
                The string to be parsed with the setting of thousands and
                decimal separator
 @returns {float|NaN} the number value contained in the string representation
Parse a String containing number in language formating @param { string } value The string to be parsed with the setting of thousands and decimal separator @returns { float|NaN } the number value contained in the string representation