![]() |
| ||||||||||||
Navigation |
Synopsis Division on numeric values.
Syntax
Exp1 / Exp2
Types
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].
![]() ![]()
Question [2].
![]() ![]()
Question [3].
![]() ![]()
Question [4].
![]() ![]() ![]() |