Skip to content

Ops: Add Saturating ops for floating point numbers #362

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
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Dietr1ch
Copy link

This implements [Saturating Ops for floats (rust-num#361)](rust-num#361).
@@ -42,6 +42,17 @@ macro_rules! saturating_impl {
};
}

macro_rules! float_saturating_impl {
Copy link
Author

@Dietr1ch Dietr1ch May 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, this is not specific to floats, but it doesn't seem to be useful for other types yet and it requires that the type is naturally saturating.

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