Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cider2] Add missing Fixed Prims #2235

Merged
merged 4 commits into from
Jul 30, 2024
Merged

[Cider2] Add missing Fixed Prims #2235

merged 4 commits into from
Jul 30, 2024

Conversation

EclecticGriffin
Copy link
Collaborator

Part of #1913.

Adds the missing fixed point primitives from the std library. Dose a bit of extra work to make the printing compatible with the existing expects but it still doesn't match the printing in all cases since I'm currently using floats to print the values while the original fud printouts use Decimal with an aggressive 64 digits of precision. If we wanted to match that, I would probably switch to use fraction::Decimal since BigRational doesn't seem to offer a way to format things as decimals beyond just jumping to an f64 as I currently am.

Also for reasons that escape me the current expect files want fixed point printouts to be surrounded by quotes so there's an extra flag --legacy-quotes for the data converter now to do this. Still need to adjust the fud2 paths to allow for flags to be passed to the converter.

@EclecticGriffin EclecticGriffin mentioned this pull request Jul 30, 2024
22 tasks
@EclecticGriffin EclecticGriffin merged commit 60a8cad into main Jul 30, 2024
18 checks passed
@EclecticGriffin EclecticGriffin deleted the cider2/fixed-prims branch July 30, 2024 17:47
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