Navigation
Synopsis Division on numeric values.
Syntax Exp1 / Exp2
Types
Exp1 Exp2 Exp1 / Exp2
int int int
int real real
real real real
Description Yields the result of dividing the value of NumExp1 by the value of NumExp2.
Examples
rascal>12 / 3
int: 4
rascal>10 / 3
int: 3
rascal>12 / 3.0
real: 4.
rascal>10 / 3.0
real: 3.333333333
rascal>12 / 0
|stdin:///|(5,1,<1,5>,<1,6>): ArithmeticException("/ by zero")



Questions
Question [1].
The type of -17 / -4 is

Question [2].
The type of -12 / -2.634322577531080 is

Question [3].
The type of 12.7739003802338360 / -14 is

Question [4].
13.3538113070993920 / -5.8207515179706960 == 



Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.