Buckets:
| import {formatDecimalParts} from "./formatDecimal.js"; | |
| export default function(x, p) { | |
| var d = formatDecimalParts(x, p); | |
| if (!d) return x + ""; | |
| var coefficient = d[0], | |
| exponent = d[1]; | |
| return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient | |
| : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1) | |
| : coefficient + new Array(exponent - coefficient.length + 2).join("0"); | |
| } | |
Xet Storage Details
- Size:
- 473 Bytes
- Xet hash:
- 5d1eade39a4d31e01539726974f6899c37cf131cd668740fef02039d52b4bc49
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.