Navigation
Synopsis Negate a numeric value.
Syntax - Exp
Types
Exp - Exp
int int
real real
Description Yields the negated values of Exp.
Examples
rascal>-12
int: -12
rascal>-13.5
real: -13.5
rascal>- -12
int: 12

Questions
Question [1].
The type of --7 is

Question [2].
The type of --10.5186514496595640 is

Question [3].
--16.547652205870440 == 



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.