Sign in
◑
Theme
appsheet-third-party
/
d3
/
a38daa4f3a67692352e2fc6a71613a989491742f
/
.
/
src
/
format
/
round.js
blob: 44e9574295a465695e4559b724afd7eb410b9737 [
file
]
d3
.
round
=
function
(
x
,
n
)
{
return
n
?
Math
.
round
(
x
*
(
n
=
Math
.
pow
(
10
,
n
)))
/
n
:
Math
.
round
(
x
);
};