gleam-lang / stdlib

🎁 Gleam's standard library
https://hexdocs.pm/gleam_stdlib/
Apache License 2.0
444 stars 161 forks source link

floating point modulo #525

Closed schurhammer closed 1 month ago

schurhammer commented 6 months ago

Can we add "fmod" to the float module? https://www.erlang.org/doc/man/math#fmod-2

The Int type has a modulo function, why not Float?

lpil commented 6 months ago

Sounds good! It should be called modulo

dalprahcd commented 3 months ago

Hello @lpil, can help in this issue?

lpil commented 3 months ago

Hello! What are you looking for help with?

dalprahcd commented 3 months ago

Can I try implementing the function modulo and remainder for the float type?

lpil commented 3 months ago

Yes please, that would be great!