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