robertobucher / pysimCoder

Block diagram editor and real time code generator for Python
GNU General Public License v3.0
142 stars 31 forks source link

math: add support for modulo operation #74

Closed michallenc closed 5 months ago

michallenc commented 5 months ago

This commit introduces new modulo block that computes the truncated remainder of x / y operation. Since pysimCoder currently supports only double type, the entire operation can be done with fmod function included from math.h.