fast-xml-parser dealing with large numbers

42 Views Asked by At

im trying to parse a XML with contains a value with big numbers, but is returning me : ~only examples~

2.9999903656804e+43

but the expected is:

2999999656804999999550999008999491999425661 

my actual config is:

    const parser = new XMLParser({
        ignoreAttributes: false,
        numberParseOptions: {
            // com essa opção, caso o valor seja zero a esquerda, vira uma string.
            leadingZeros: false,
        },
    });

i read the documentation, but not found the explain.

0

There are 0 best solutions below