MCPcopy Create free account
hub / github.com/apache/fory / partsToNumber

Function partsToNumber

javascript/packages/core/lib/compatible/scalar.ts:456–458  ·  view source on GitHub ↗
(value: DecimalParts)

Source from the content-addressed store, hash-verified

454}
455
456function partsToNumber(value: DecimalParts): number {
457 return Number(formatParts(value, false));
458}
459
460function exactInteger(value: DecimalParts): bigint {
461 const normalized = normalizeParts(value);

Callers 1

exactFloatFunction · 0.85

Calls 2

NumberClass · 0.85
formatPartsFunction · 0.85

Tested by

no test coverage detected