nakkaya / ferret

Ferret is a free software lisp implementation for real time embedded control systems.

Home Page:https://ferret-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rem function doesn't work

esp1 opened this issue · comments

Using the rem function results in this error:

error: 'remainder' was not declared in this scope
                          __result = obj<number>(remainder(number::to<real_t>(num), number::to<real_t>(div)));

This also means that the mod function does not work.

Apparently avr-gcc does not implement remainder function. Replaced the call with % operator.