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

cast.ToInt("25.400") returned 0 #204

Open
Darrenzzy opened this issue Nov 20, 2023 · 2 comments
Open

cast.ToInt("25.400") returned 0 #204

Darrenzzy opened this issue Nov 20, 2023 · 2 comments

Comments

@Darrenzzy
Copy link

image

As shown above, the incompleteness of case leads to floating-point variables, which are converted to 0 values.
Here, it is necessary to judge whether there is a case of "."besides 0.

@Darrenzzy
Copy link
Author

This code need to completely traverse the complete, for loop to avoid returning default in the middle and generating errors.

@keepondream
Copy link

Me too, it took 3 months for the program to run before I found this bug. Change it to decimal

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