Skip to content

Fix int == float always returning false#477

Merged
geseq merged 1 commit into
d5:masterfrom
ganehag:proposal/int-float-equality
Apr 24, 2026
Merged

Fix int == float always returning false#477
geseq merged 1 commit into
d5:masterfrom
ganehag:proposal/int-float-equality

Conversation

@ganehag

@ganehag ganehag commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

BinaryOp already handles cross-type int/float arithmetic and ordering, but Equals did strict type checks, so 1 == 1.0 returned false even though 1 < 1.0 and 1 > 1.0 were both false. Fixes issue #432.

BinaryOp already handles cross-type int/float arithmetic and ordering,
but Equals did strict type checks, so 1 == 1.0 returned false even
though 1 < 1.0 and 1 > 1.0 were both false. Fixes issue d5#432.
@geseq geseq merged commit e3b619f into d5:master Apr 24, 2026
1 check passed
@ganehag ganehag deleted the proposal/int-float-equality branch April 24, 2026 12:16
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