UNPKG

186 BJavaScriptView Raw
1import exponent from "./exponent";
2
3export default function(step, max) {
4 step = Math.abs(step), max = Math.abs(max) - step;
5 return Math.max(0, exponent(max) - exponent(step)) + 1;
6}