Skip to content

fix(evaluate): 0.0 is serialized as -0 - #1981

Merged
Yury Semikhatsky (yury-s) merged 1 commit into
microsoft:mainfrom
yury-s:fix-positive-zero
Sep 14, 2026
Merged

Yury Semikhatsky (yury-s) merged 1 commit into
microsoft:mainfrom
yury-s:fix-positive-zero

Conversation

@yury-s

Copy link
Copy Markdown
Member

Summary

  • d == -0 matched both 0.0 and -0.0, so positive zero was sent to the browser as -0; compare with Double.compare instead.
  • Add a test for transferring positive zero.

Supersedes #1965

`d == -0` is true for both 0.0 and -0.0, so positive zero was sent to
the browser as -0.
@yury-s
Yury Semikhatsky (yury-s) merged commit 853e127 into microsoft:main Sep 14, 2026
19 checks passed
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