Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
6
node_modules/d3-format/src/precisionRound.js
generated
vendored
Normal file
6
node_modules/d3-format/src/precisionRound.js
generated
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import exponent from "./exponent.js";
|
||||
|
||||
export default function(step, max) {
|
||||
step = Math.abs(step), max = Math.abs(max) - step;
|
||||
return Math.max(0, exponent(max) - exponent(step)) + 1;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue