Float comparison operators return int 0/1 instead of bool #405
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
rust
technical-debt
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
navicore/patch-seq#405
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Comparison operators on floats appear to return the legacy int
0/1instead oftrue/false. Int comparison correctly returns a bool.Repro
Int
>yieldsfalse(bool), but float>yields0(int). Presumably<,>=,<=,=,!=on floats are similarly affected.Expected
Float comparisons should return
true/falselike their int counterparts.Confirmed affects
>=and=too (and int comparisons still correct):ad2058af47