PageSourceSearch

https://xn--b1agalvbh0abk8gh.xn--p1ai/bitrix/themes/intec.startshop/js/functions.js?1631622312937

js xn--b1agalvbh0abk8gh.xn--p1ai collected 2026-10-06 02:39:57 UTC 937 bytes, 28 lines download raw bytes

vendor: 937 bytes, lines 1-28
1function number_format(number, decimals, dec_point, thousands_sep) {
2    number = (number + '')
3        .replace(/[^0-9+\-Ee.]/g, '');
4
5    var n = !isFinite(+number) ? 0 : +number,
6        prec = !isFinite(+decimals) ? 0 : Math.abs(decimals),
7        sep = (typeof thousands_sep === 'undefined') ? ',' : thousands_sep,
8        dec = (typeof dec_point === 'undefined') ? '.' : dec_point,
9        s = '',
10        toFixedFix = function(n, prec) {
11            var k = Math.pow(10, prec);
12            return '' + (Math.round(n * k) / k)
13                    .toFixed(prec);
14        };
15
16    s = (prec ? toFixedFix(n, prec) : '' + Math.round(n))
17        .split('.');
18    if (s[0].length > 3) {
19        s[0] = s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g, sep);
20    }
21    if ((s[1] || '')
22            .length < prec) {
23        s[1] = s[1] || '';
24        s[1] += new Array(prec - s[1].length + 1)
25            .join('0');
26    }
27    return s.join(dec);
28}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.