Skip to content

Auto parses a string as a number #381

@kennethklee

Description

@kennethklee

Describe the bug

csv-parse auto parses string that contains only numbers as a float when it shouldn't. I'm transforming a CSV and spitting out CSV.

To Reproduce

Input CSV file:

"Code","Name","Age"
"1234567890AB","Works",123
"123456789012","Doesn't",123

Output CSV file:

Code,Name,Age
1234567890AB,Works,123
1.23456E+11,Doesn't,123

Notice the output CSV transforms "123456789012" into 1.23456E+11

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions