Open havogt opened 1 year ago
Just for information, math.fmod()
implements the same behavior as C/C++ and according to the documentation (https://devdocs.io/python~3.11/library/math#math.fmod) is preferred when working with floats, but the default implementation of operator.__mod__()
in python works differently, so it's not so clear to me how to proceed for the embedded backends.
-1 % 2 == -1
in C++, but-1 % 2 == 1
in Python.In gt4py.next we get different result for C++ and Python backends.
abs