MCPcopy Create free account
hub / github.com/cursorless-dev/cursorless / postProcessValue

Function postProcessValue

src/scripts/hatAdjustments/lib.ts:1–4  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

1export function postProcessValue(value: number) {
2 value = Math.round(value * 10000) / 10000;
3 return value === 0 ? undefined : value;
4}

Callers 2

processPropertyFunction · 0.90
processPropertyFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected