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 fmod for double and float to the standard library #2347

Open
pbrubaker opened this issue Jul 17, 2022 · 0 comments · May be fixed by #2693
Open

Add fmod for double and float to the standard library #2347

pbrubaker opened this issue Jul 17, 2022 · 0 comments · May be fixed by #2693
Assignees
Labels
Features Good First Issue Good for new contributors Standard Library Standard library problems and improvements

Comments

@pbrubaker
Copy link
Collaborator

We currently have trunc() so it's possible for users to implement it themselves, but it would be nice to have it in the stdlib.

float fmodf(float x, float y)
{
  return x - trunc(x / y) * y;
}
@pbrubaker pbrubaker added Features Good First Issue Good for new contributors Standard Library Standard library problems and improvements labels Jul 17, 2022
@pbrubaker pbrubaker self-assigned this Oct 30, 2023
@pbrubaker pbrubaker linked a pull request Oct 30, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Features Good First Issue Good for new contributors Standard Library Standard library problems and improvements
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

1 participant