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

strconv: fix remove_tail_zeros bug #22422

Merged
merged 2 commits into from
Oct 6, 2024

Conversation

kbkpbot
Copy link
Contributor

@kbkpbot kbkpbot commented Oct 6, 2024

fix issue #22421 , it is a bug in strconv.remove_tail_zeros()

	assert strconv.remove_tail_zeros('1.234000000000') == '1.234'
	assert strconv.remove_tail_zeros('1.0000000') == '1'
	assert strconv.remove_tail_zeros('1234') == '1234'
	assert strconv.remove_tail_zeros('1.00000000007') == '1.00000000007'

Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work 🙇🏻‍♂️ .

@spytheman spytheman merged commit 491d6f4 into vlang:master Oct 6, 2024
73 checks passed
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.

2 participants