lib/ui/charting/js_charting.js
function(num, max) {
            max = max || Infinity;
            var precision = 0;

            while(precision < max && num.toFixed(precision) !== num.toString()) {
                precision += 1;
            }

            return precision;
        }
function(num, max) {
            max = max || Infinity;
            var precision = 0;

            while(precision < max && num.toFixed(precision) !== num.toString()) {
                precision += 1;
            }

            return precision;
        }
function ( num , max ) { max = max || Infinity ; var precision = 0 ; while ( precision < max && num . toFixed ( precision ) !== num . toString ( ) ) { precision += 1 ; } return precision ; }
returns the number of digits of precision after the decimal point optionally accepts a maximum number, after which point it will stop looking and return the max
returns the number of digits of precision after the decimal point optionally accepts a maximum number after which point it will stop looking and return the max