asafdav/ng-csv

Exporting to csv changes last number of integer to 0

Opened this issue · 0 comments

I have an object created and inserted into the scope through an api call. Basically intended to represent a series of database table rows in an object. This data is then displayed on an page using angular with jsp. All data displays correctly. Then using the ng-csv directive inputting this object like this:

Export to CSV

getHeader() code:
$scope.getHeader = function () {
return ["id", "name", "value"];
}

the column in question here is "value".

In my UI I see this set of values:

1230089771927192
1230089771917191
1230089771907190

But I see this in the CSV:
1230089771927190
1230089771937190
1230089771947190

Another example:

In UI :
3001703901160116
3001703901170117
3001703901180118
3001703901190119

In CSV:
3001703901160110
3001703901170110
3001703901180110
3001703901190110