MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / roundWithPrecision

Function roundWithPrecision

app/utilities/formatStarCount.ts:16–19  ·  view source on GitHub ↗
(value: number, precision: number)

Source from the content-addressed store, hash-verified

14}
15
16function roundWithPrecision(value: number, precision: number): number {
17 const multiplier = Math.pow(10, precision);
18 return Math.round(value * multiplier) / multiplier;
19}

Callers 1

formatStarCountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected