(11-27-2022, 08:54 PM)Chris Wrote: SMcNeill
Can you complete this formula with data: -7 MOD 5 so that the result is displayed as a variable: PRINT A #
Chris
Code: (Select All)
A# = ModAll(-7, 5)
PRINT A#
FUNCTION ModAll&& (number as _INTEGER64, number2 AS LONG)
temp&& = number MOD number2
IF temp&& < 0 THEN temp&& = temp&& + number
ModAll = temp&&
END FUNCTION