div

/

perform integer division between given values and return result


Parameters

div valueA :integer :floating :complex :rational :literal :pathliteral :quantity :object
    valueB :integer :floating :complex :rational :quantity :object

Returns

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

Examples

copy
print div 5 2 ; 2 print 9 / 3 ; 3

copy
a: 6 div 'a 3 ; a: 2

Related