Skip to content

Loss of precision on float reading #122

Description

@Etendard7

Hi,

Thank you for this library !

I observed a surprising anomaly when reading some float numbers (as double).

If we take this csv, for example, and read the first column as a double :

Col1,Col2
9.855536508,0

The first value will be read as 9.8555365080000054
It should be read as 9.8555365080000001

The second one is the value you get with other parsers. It is also the value you get if you do
double x = 9.855536508;

For my application, this has an impact that leads to a bigger bug.

Do not hesitate to ask me for further tests if you wish.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions