Download node_modules/d3-format/src/exponent.js from NKessler/Horizon: direct link, hf CLI and curl.
- Browser
- Download file 149 Bytes
-
https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-format/src/exponent.js
- Command line
-
hf download hf://NKessler/Horizon/node_modules/d3-format/src/exponent.js
-
curl -L -o exponent.js https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-format/src/exponent.js
149 Bytes
| import {formatDecimalParts} from "./formatDecimal.js"; | |
| export default function(x) { | |
| return x = formatDecimalParts(Math.abs(x)), x ? x[1] : NaN; | |
| } | |