Navigation
Synopsis Numeric values.
Types int, real, num
Usage import Number; (deprecated: use import util::Math;)
Description Numbers include integers (values of type int) and reals (values of type real). If both operands have the same type (int or real) then the operator is the corresponding operator on integers or reals. Otherwise, integer arguments are first converted to real and the real operator is applied.

The following operations are provided on numbers:
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.