Number Multiplication
rascal-0.40.17
Synopsis
Multiply two numeric values.
Syntax
Exp₁ * Exp₂
Types
Exp₁ | Exp₂ | Exp₁ * Exp₂ |
---|---|---|
int | int | int |
int | real | real |
real | real | real |
Description
Yields the result of multiplying the values of Exp₁ and Exp₂.
Examples
rascal>12 * 13
int: 156
rascal>12 * 13.5
real: 162.0
rascal>-12*13
int: -156