Skip to content

Write exotic float conversions in Rust. #8

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

Open
scott-griffiths opened this issue Mar 19, 2025 · 0 comments
Open

Write exotic float conversions in Rust. #8

scott-griffiths opened this issue Mar 19, 2025 · 0 comments

Comments

@scott-griffiths
Copy link
Owner

The bitstring exotic floats go through an intermediate step for efficiency reasons. They truncate to 16 bits and can then use a lookup table.

This works OK, but it does mean that sometimes things can get rounded in the wrong direction. See scott-griffiths/bitstring#342

With bitformat we have a Rust core which should be pretty fast at this sort of thing, without needing the rounding approximation, so suggest it's implemented in Rust rather than porting over the LUT code.

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

No branches or pull requests

1 participant