Skip to content

Conversation

@cbmarini
Copy link
Collaborator

This PR fixes a couple of bugs for the floating point system.

@coveralls
Copy link

coveralls commented Nov 25, 2025

Coverage Status

coverage: 57.32% (+0.2%) from 57.16%
when pulling 117a774 on cbmarini:float-bugs
into e2b60e2 on form-dev:master.

test: added two tests for MergeWithFloat and AddWithFloat.
…wo FORM words.

 - Also added a test for these extreme floats.
- removed spurious warning about missing numerical implementation for functions that do not evaluate numerically after the Evaluate statement,
- rational coefficients multiplied by symbols that remain unevaluated were incorrectly converted to floating-point coefficients.
- ClearfFloat and ClearMZVTables are called at the beginning of DoStartFloat to clean up any previous float systems.
- Removed redundant cleanup code from SetupMZVTables, SetupMPFTables and SetfFloatPrecision as cleanup is now handled in DoStartFloat.
… reserved function names for FORM build without floating point capabilities.
…rong and even be negative.

- It is now increased iteratively until it meets the required precision.
- This also fixes the remaining rounding issues in the euler_ and mzvhalf_ tests (see PR699).
- furthermore, the raw form in the Float_1 test has been slightly adjusted.
…ests for the StrictRounding statement to have full coverage.
@cbmarini cbmarini merged commit c6f4a40 into form-dev:master Dec 9, 2025
84 checks passed
@cbmarini cbmarini deleted the float-bugs branch December 9, 2025 15:15
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