function toRawPrecision(x, minPrecision, maxPrecision) {
        var m = x.toPrecision(maxPrecision);
        if (~m.indexOf('.') && maxPrecision > minPrecision) {
            var cut = maxPrecision - minPrecision;
            while (cut > 0 && m[m.length - 1] === '0') {
                m = m.slice(0, m.length - 1);
                cut--;
            }
            if (m[m.length - 1] === '.') {
                return m.slice(0, m.length - 1);
            }
        }
        return m;
    }
https://tc39.es/ecma402/#sec-torawprecision
@param x
@param minPrecision
@param maxPrecision