Download node_modules/d3-format/src/precisionRound.js from NKessler/Horizon: direct link, hf CLI and curl.
- Browser
- Download file 189 Bytes
-
https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-format/src/precisionRound.js
- Command line
-
hf download hf://NKessler/Horizon/node_modules/d3-format/src/precisionRound.js
-
curl -L -o precisionRound.js https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-format/src/precisionRound.js
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; | |
| } | |