arithmetic modulo operat

When negative values are involved in modulo operation, there are two methods of performing the calculation: the arithmetic method and the method known from programming languages.

Our interpreter uses the arithmetic method to process the MOD operator.

The method used in programming languages usually outputs negative result when dividend and divisor are negative, in contrast the arithmetic method will give a positive value. Please take a look here for an example: https://www.omnicalculator.com/math/modulo?c=EUR&v=a:0,y:-8,x:-25

The implementation of method used in programming languages can differ per language, which adds to the confusion. mi

Please note that if it does not fit your needs, you can explore using the ABS operator in conjunction with MOD, or you can create your own subroutine that performs calculations.https://www.omnicalculator.com/math/modulo?c=EUR&v=a:0,y:-8,x:-25odulo operation