Mathematical operators
You use mathematical operators to calculate complex formula:
double x = 3.14 / 180 * 7.5;
Mathematical operators are
+
,
-
,
*
,
/
, and
%
(modulus). All operators work for
int
and
double
types.