Skip to content

Fix a precision bug of valueToString, prevent to give an error result… #1

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

Merged
merged 1 commit into from
Dec 16, 2020

Conversation

sclei
Copy link
Owner

@sclei sclei commented Dec 16, 2020

…… (open-source-parsers#1246)

  • Fix a precision bug of valueToString, prevent to give an error result on input of wanted precision 0 and a double value which end of zero before decimal point ,such as 1230.01,12300.1;
    Add test cases for double valueToString with precision 0;

  • Delete a test case with platform differences in the previous commit

  • Fix clang-format.

  • Fix clang-format!

Co-authored-by: lilei [email protected]

#1246)

* Fix a precision bug of valueToString, prevent to give an error result on input of wanted precision 0 and a double value which end of zero before decimal point ,such as 1230.01,12300.1;
Add test cases for double valueToString with precision 0;

* Delete a test case with platform differences in the previous commit

* Fix clang-format.

* Fix clang-format!

Co-authored-by: lilei <[email protected]>
@sclei sclei merged commit 78da126 into sclei:master Dec 16, 2020
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

Successfully merging this pull request may close these issues.

1 participant