MCPcopy Create free account
hub / github.com/codemix/graph / peg$f279

Function peg$f279

packages/graph/src/grammar.js:2297–2301  ·  view source on GitHub ↗
(sign, intPart, expSign, expPart)

Source from the content-addressed store, hash-verified

2295 return sign ? -num : num;
2296 }
2297 function peg$f279(sign, intPart, expSign, expPart) {
2298 const exponent = (expSign || '') + expPart.join('');
2299 const num = parseFloat(intPart.join('') + 'e' + exponent);
2300 return sign ? -num : num;
2301 }
2302 function peg$f280(sign, digits, decimals) {
2303 const num = parseFloat(digits.join('') + '.' + decimals.join(''));
2304 return sign ? -num : num;

Callers 1

peg$parseScientificFloatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected