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

Need scalar float to fixed-point conversion function #123

Open
astewart-xmos opened this issue Nov 11, 2022 · 0 comments
Open

Need scalar float to fixed-point conversion function #123

astewart-xmos opened this issue Nov 11, 2022 · 0 comments
Labels
type:enhancement New feature or request

Comments

@astewart-xmos
Copy link
Contributor

I've encountered several cases where it would be nice to have a function like:

int32_t  float_to_s32(float input_value, exponent_t output_exponent);

This is basically a scalar float to 32-bit fixed-point conversion.

Similar for float_s32_t to 32-bit fixed-point.

@mbanth mbanth added the type:enhancement New feature or request label Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants