Blame view

天文台pc/tianwentai-ui/node_modules/d3-format/src/precisionRound.js 189 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
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;
  }