MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / format

Function format

test/compute-engine/latex-syntax/numbers.test.ts:424–425  ·  view source on GitHub ↗
(num: string)

Source from the content-addressed store, hash-verified

422 expect(reformat('12420')).toMatchInlineSnapshot(`12\\,420`);
423 expect(reformat('7000')).toMatchInlineSnapshot(`7\\,000`);
424 expect(reformat('12420\\times10^{7}')).toMatchInlineSnapshot(
425 `124\\,200\\,000\\,000`
426 );
427 expect(reformat('12420.54\\times10^{7}')).toMatchInlineSnapshot(
428 `124\\,205\\,400\\,000`

Callers 1

numbers.test.tsFile · 0.85

Calls 2

toLatexMethod · 0.80
exprMethod · 0.65

Tested by

no test coverage detected