Skip to content

The / Command

Command Summary Command Syntax Calculator Compatibility Token Size
Divides one number by another. value1 / value2 This command works on all calculators. 1 byte

Press the [/] key to paste /.

The / Command

The / operator divides two numbers, variables, or expressions. It has higher priority than + and -, so it will be done before them; it has the same priority as *.

:x/y
        x/y
:2/2
        1

Though division by zero isn't allowed, it will not cause an error; instead it returns the value undef — short for "undefined." Dividing by a variable that hasn't been defined yet will cancel it if it occurs on both sides: 5*x/x will equal 5; a short warning will be given to the effect that this isn't valid for x=0.

  • - (subtract)
  • * (multiply)
  • + (add)

See Also

Authors: KG