Description
When the * operator has two operands of integral type or real type it performs multiplication, according to the following rules:
Here are some examples using the * operator to perform multiplication:
3 * 5 which results in the integer value 15
3 * 5.0 which results in the real value 15.0
3.0 * 5 which results in the real value 15.0
3.0 * 5.0 which results in the real value 15.0
-3 * 5 which results in the integer value -15
3 * -5 which results in the integer value -15
-3 * -5 which results in the integer value 15