Skip to content

Scale param #16

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

Merged
merged 7 commits into from
May 16, 2025
Merged

Scale param #16

merged 7 commits into from
May 16, 2025

Conversation

raphaelDkhn
Copy link
Contributor

Introducing Fixed point params thanks to Rust's const generics.

You can now define a fixed point by its scale as follow:

let a = Fixed::<15>::from_f64(3.14);

Pull Request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build-related changes
  • Documentation content changes
  • Other (please describe):

Does this introduce a breaking change?

  • Yes
  • No

Other information

@raphaelDkhn raphaelDkhn merged commit c99e4c5 into master May 16, 2025
1 check passed
@raphaelDkhn raphaelDkhn deleted the scale-param branch May 16, 2025 10:51
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