Horizon / node_modules /d3-format /src /precisionRound.js
NKessler's picture
Upload 6270 files
4083225 verified
Raw
History Blame Contribute Delete
189 Bytes
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;
}