Skip to content

Document the 16-17 significant digit float quirk to avoid future confusion - #112

Merged
fremling merged 1 commit into
JuliaInterop:masterfrom
fremling:master
Nov 1, 2026
Merged

fremling merged 1 commit into
JuliaInterop:masterfrom
fremling:master

Conversation

@fremling

@fremling fremling commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

The Wolfram kernel reads reals with at most 17 significant digits as machine reals, so e.g. W4.3000000000000001 becomes 4.3, while 18 digits give a WReal. Added a README section explaining this and the precision-mark workaround, added tests for the 16/17/18-digit cases (the 17-digit case marked @test_broken for future explorers).

No change of functionality.

…usion

The Wolfram kernel reads reals with at most 17 significant digits as machine
reals, so e.g. W`4.3000000000000001` becomes 4.3, while 18 digits give a WReal.
Add a README section explaining this and the precision-mark workaround, add
tests for the 16/17/18-digit cases (the 17-digit case marked @test_broken),
and ignore Emacs autosave files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fremling
fremling merged commit 4eabb6c into JuliaInterop:master Nov 1, 2026
0 of 4 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.

1 participant