octave mod code example Example: octave modulo mod (x, 0) = x mod (x, y) returns a value with the signbit from y