Skip to content

fix(fmath): make float_to_rational work for all float inputs - #5477

Open
lgritz wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
lgritz:lg-rational
Open

lgritz wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
lgritz:lg-rational

Conversation

@lgritz

@lgritz lgritz commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

A variety of float values would have UB or otherwise nonsensical behavior for float_to_rational. Tighten up the logic, and some of the call sites.

One reason this is important is that the float values can come from input files, and therefore may be corrupt or constructed to trigger these problems.

Assisted-by: Claude Code / Claude Opus 5

A variety of float values would have UB or otherwise nonsensical
behavior for float_to_rational. Tighten up the logic, and some of the
call sites.

One reason this is important is that the float values can come from
input files, and therefore may be corrupt or constructed to trigger
these problems.

Assisted-by: Claude Code / Claude Opus 5

Signed-off-by: Larry Gritz <lg@larrygritz.com>
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