UNPKG
d3-jsnext
Version:
latest (3.5.5)
3.5.5
d3, but futuristic
github.com/rollup/d3-jsnext
rollup/d3-jsnext
d3-jsnext
/
src
/
format
/
round.js
9 lines
(7 loc)
•
151 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
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 };