Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integer to string convertion #45

Open
MajkelPl55453 opened this issue May 18, 2020 · 2 comments
Open

Integer to string convertion #45

MajkelPl55453 opened this issue May 18, 2020 · 2 comments

Comments

@MajkelPl55453
Copy link

Hi,
If i put this string "123/456" which is a order number, the package will convert it to number like 123/456 not a string. How can I convert it to string?

@usmanhalalit
Copy link
Owner

Does it manipulate your value? Otherwise I think, it doesn't make any difference because it's all string when it's in a CSV file. Maybe you can also post your input and CSV output example here.

@MajkelPl55453
Copy link
Author

Hi, but i think that when i put this csv into software like excel or open office then this software could convert this value to numbers and performe division operation.

Input in JSON format
[{"col1":"xxxxx xxxxxx","col2":"2020\/000002","col3":"xxxxxxxxxxxx","col4":"xxxxxxxxxxxxxxxxxx","col5":"74.40","col6":"91.51"},{"col1":"xxxxxxxxxxxxxx","col2":"2020\/000003","col3":"xxxxxxxxxxxxxxxx","col4":"xxxxxxxxxxxxxxxxxx","col5":"213.00","col6":"261.99"}]

Output in CSV
col1,col2,col3,col4,col5,col6 "xxxxxxxxxxxx",2020/000002,"xxxxxxxxxxxx","xxxxxxxxxxxx",74.40,91.51 "xxxxxxxxxxxx",2020/000003,"xxxxxxxxxxxx","xxxxxxxxxxxx",213.00,261.99

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants