-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Decimal point is not preserved after parsed to json. #644
Comments
We're glad you find this project helpful. We'll try to address this issue ASAP. You can vist https://solothought.com to know recent features. Don't forget to star this repo. |
Please check https://github.com/NaturalIntelligence/strnum |
Hi @amitguptagwl , I have tried to pass in options with leadingZeros: false and the decimal point is not preserved. |
To keep a number as "33.00", it should not be parsed as number but as string only. |
Hi @amitguptagwl , may I know any workaround or any fix for this on your side? |
[] Are you running the latest version?
[/ ] Have you included sample input, output, error, and expected output?
[/] Have you checked if you are using correct configuration?
[/] Did you try online tool?
Description
Tried out some ways below but still not working:
Current version used: 4.0.2
Code
Output
[ { correctResponse: [ { value: [ { '#text': 33 } ] } ] } ]
Expected data
[ { correctResponse: [ { value: [ { '#text': 33.00 } ] } ] } ]
The text was updated successfully, but these errors were encountered: