blob: 24e32a1e6d006a77d144263da5fce77f2c1479da [file]
function d3_format_precision(x, p) {
return p - (x ? Math.ceil(Math.log(x) / Math.LN10) : 1);
}