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

Add modulo/remainder function to fx #5727

Open
rvwagner opened this issue Feb 11, 2025 · 0 comments
Open

Add modulo/remainder function to fx #5727

rvwagner opened this issue Feb 11, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@rvwagner
Copy link

Description

Add the % operator to fx. Its absence can often be worked around with if statements (or, in one memorable case, abs(sin(sample*rads(90))) in place of a hypothetical sample%2), but having the real operator would be nice. My use cases have generally been selecting out specific sets of lines and/or samples to do other calculations on (e.g. modifying only the even columns, or operating only on the blue pixels of a Bayer-pattern grid), so I wouldn't object to it being limited to integers, but there are certainly extended versions that work for floating-point data, which might be easier than dealing with type-checking.

@rvwagner rvwagner added the enhancement New feature or request label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant