# \#numbers

**URL:** https://erlangforums.com/tag/numbers/470.md

[Latest](https://erlangforums.com/latest.md) · [Categories](https://erlangforums.com/categories.md) · [Tags](https://erlangforums.com/tags.md)

---

## [Remainder gives negative result for positive numbers?](https://erlangforums.com/t/remainder-gives-negative-result-for-positive-numbers/3616)

<div class="topic-metadata">

**Author:** [@papadil](https://erlangforums.com/u/papadil)\
**Replies:** 9\
**Last updated:** [May 13, 2024, 4:17am UTC](https://erlangforums.com/t/remainder-gives-negative-result-for-positive-numbers/3616 "2024-05-13T04:17:15Z")

</div>

Hello, Pardon if this is a repeat, I could not find a search for the forums for some reason. I’m calculating a simple recursion: 2\*(t(n-1)+t(n-2)-t(n-3))+t(n-4) modulo 100\_000\_000. I do the calculation naively in the I…

---

## [Complex numbers in Erlang](https://erlangforums.com/t/complex-numbers-in-erlang/1624)

<div class="topic-metadata">

**Author:** [@peerst](https://erlangforums.com/u/peerst)\
**Replies:** 9\
**Last updated:** [July 7, 2022, 12:06pm UTC](https://erlangforums.com/t/complex-numbers-in-erlang/1624 "2022-07-07T12:06:01Z")

</div>

If we extend the numbers in Erlang I’d rather care more for complex numbers than rationals. Fixed point has some use in financial applications but they often go with integers + a fixed scale i.e. everything is in pico $ …

---

## [Any chances to support rational numbers in BEAM?](https://erlangforums.com/t/any-chances-to-support-rational-numbers-in-beam/1580)

<div class="topic-metadata">

**Author:** [@mat-hek](https://erlangforums.com/u/mat-hek)\
**Replies:** 11\
**Last updated:** [July 6, 2022, 9:29am UTC](https://erlangforums.com/t/any-chances-to-support-rational-numbers-in-beam/1580 "2022-07-06T09:29:32Z")

</div>

Hey, rationals seem like a natural extension of big integers to big floats. In our use case we need them all over the place as we can’t allow accumulating errors. We use an Elixir library for that, but having rationals …
