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

fix stats output alignment #5598

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix stats output alignment #5598

wants to merge 1 commit into from

Conversation

anysql
Copy link
Contributor

@anysql anysql commented Jan 22, 2025

Values are rounded in Printf

func main() {
fmt.Printf("99.9 = %4.1f\n", 99.9) // 99.9
fmt.Printf("99.949 = %4.1f\n", 99.949) // 99.9
fmt.Printf("99.950 = %4.1f\n", 99.950) // 100.0
fmt.Printf("99.99 = %4.1f\n", 99.99) // 100.0
}

@zhijian-pro
Copy link
Contributor

zhijian-pro commented Jan 26, 2025

The impact of this is not important, but it will make the code look very strange, I do not recommend it.

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