UNPKG
@thewtex/vtk.js-esm
Version:
latest (18.4.2-77b22c7239.1)
18.4.2-77b22c7239.1
18.4.2-77b22c7239
Visualization Toolkit for the Web
github.com/kitware/vtk-js
kitware/vtk-js
@thewtex/vtk.js-esm
/
vendor
/
d3-format
/
src
/
precisionRound.js
9 lines
(6 loc)
•
231 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
{ e
as
exponent }
from
'./exponent.js'
; function precisionRound(step,
max
) { step = Math.
abs
(step),
max
= Math.
abs
(
max
) - step;
return
Math.
max
(
0
, exponent(
max
) - exponent(step)) +
1
; } export { precisionRound
as
p };