Name

+ - * / — Basic math commands.

Synopsis

+ number [number...]
- number number
* number number
/ number number

Description

The basic math commands take two arguments and carry out a numerical operation on them. In subtraction, the second argument is taken from the first. In division, the first argument is divided by the second.

Example

puts [+ 2 2]
puts [+ 1 2 3]
puts [- 10 1]
puts [* 6 7]
puts [/ 100 5]
	  

Produces:

4
6
9
42
20