vincentlaucsb / csv-parser

A high-performance, fully-featured CSV parser and serializer for modern C++.
MIT License
864 stars 144 forks source link

Values between 0 and -1 are exported positive #230

Closed PabloElSegundo closed 1 month ago

PabloElSegundo commented 1 month ago

All exported double values between 0 and -1 are positive. Your test cases do not test this. This issue ist due to an error in the csv.hpp file in line 6641. There you need to change result = "0"; to result += "0";". Otherwise you overwrite the sign.

I can currently not open a PR. I try to make the fix on the weekend.

vincentlaucsb commented 1 month ago

Thank you for your report. This has been fixed.