# Rem/modulo function for integers

**URL:** <https://forum.elixirforum.com/t/rem-modulo-function-for-integers/68503>\
**Category:** Questions\
**Tags:** float\
**Created:** [January 3, 2025, 4:14pm UTC](https://forum.elixirforum.com/t/rem-modulo-function-for-integers/68503 "2025-01-03T16:14:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![al2o3cr](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/al2o3cr/32/3457_2.png) [@al2o3cr](https://forum.elixirforum.com/u/al2o3cr)\
**Post date:** [January 3, 2025, 4:21pm UTC](https://forum.elixirforum.com/t/rem-modulo-function-for-integers/68503/2 "2025-01-03T16:21:35Z")

</div>

The BEAM provides [`:math.fmod/2`](https://www.erlang.org/doc/apps/stdlib/math.html#fmod/2) which is a trivial wrapper over the C stdlib [`fmod`](https://en.cppreference.com/w/c/numeric/math/fmod).

---

_[View the full topic](https://forum.elixirforum.com/t/rem-modulo-function-for-integers/68503)._
