UNPKG

d3-jsnext

Version:
9 lines (7 loc) 151 B
var d3$round; d3$round = function(x, n) { return n ? Math.round(x * (n = Math.pow(10, n))) / n : Math.round(x); }; export { d3$round };