Skip to content

fix(compare): numeric_eq handles BigInt/Float pairs - #20

Open
MBemera wants to merge 1 commit into
ablative-io:mainfrom
MBemera:fix/numeric-eq-bigint-float
Open

fix(compare): numeric_eq handles BigInt/Float pairs#20
MBemera wants to merge 1 commit into
ablative-io:mainfrom
MBemera:fix/numeric-eq-bigint-float

Conversation

@MBemera

@MBemera MBemera commented Jul 26, 2026

Copy link
Copy Markdown

Closes #15.

Adds the missing BigInt↔Float arms to numeric_eq. Rounds bignum→f64 the same way compare_numbers already does, so == and =</>= agree.

Three tests in term/compare/tests.rs using 2^70. Fail without the fix, pass with it. Gate green locally — fmt, clippy, wasm32-check, wasm-tests 80/80, workspace tests 1752/0.

hope this ok. my wife sent me the in the genes podcast discussing this and thought id have a look, had a spare few hours today.

all the best -MB

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.

== returns false for arithmetically-equal bignum/float — BigInt↔Float arms missing in numeric_eq

1 participant