-
Notifications
You must be signed in to change notification settings - Fork 296
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
min and max occasionally return the wrong value #3884
Comments
In case it's not obvious, an easy workaround is to run the check yourself: |
Looking at the generated code, it seems like when using It is possible that because |
@mattgallagher92 It's not just occasionally, it's consistently wrong :) Thanks for reporting, fixed in #3885. |
Thanks @ncave! Actually, |
Using operators directly was comparing their internal string representation, so "01" < "300", but "9" > "300". |
Description
max
sometimes, but not always, returns the smaller rather than bigger value. So doesmin
.Repro code
max 9m 300m
Expected and actual results
Expected: 300
Actual: 9
Related information
The text was updated successfully, but these errors were encountered: