Files
Webklar.com/node_modules/d3-format/src/precisionRound.js
Basilosaurusrex f027651f9b main repo
2025-11-24 18:09:40 +01:00

7 lines
189 B
JavaScript

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;
}