mod

%

calculate the modulo of given values and return result


Parameters

mod valueA :integer :floating :rational :literal :quantity
    valueB :integer :floating :rational :quantity

Returns

  • :integer
  • :floating
  • :rational
  • :quantity
  • or  :nothing

Examples

copy
print mod 5 2 ; 1 print 9 % 3 ; 0

copy
a: 8 mod 'a 3 ; a: 2

Related