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

Function reformat

test/compute-engine/latex-syntax/numbers.test.ts:323–325  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

321 test('Non-machine number', () => {
322 // Exponent larger than 10^308 (Number.MAX_VALUE = 1.7976931348623157e+308)
323 // With decimal point, treated as approximate BigNumericValue
324 expect(ce.parse('421.35e+1000')).toMatchInlineSnapshot(`4.2135e+1002`);
325 // Exponent smaller than 10^-323 (Number.MIN_VALUE = 5e-324)
326 expect(ce.parse('421.35e-323')).toMatchInlineSnapshot(`4.2135e-321`);
327
328 // More than 15 digits

Callers 1

numbers.test.tsFile · 0.85

Calls 2

toLatexMethod · 0.80
parseMethod · 0.65

Tested by

no test coverage detected