MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / tenth

Function tenth

__tests__/ui-export-svg.test.ts:470–470  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

468 // on, and NO rect at all for the one nothing depends on.
469 // The export rounds to a tenth, as every coordinate in this file does.
470 const tenth = (n: number) => Math.round(n * 10) / 10;
471 const full = nodeOf('src/types');
472 const quarter = nodeOf('src/db');
473 expect(quarter.weight).toBeCloseTo(0.25, 5);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected