Operators (cont.)
n
The “
/
” denotes
division
when applied
to two floating point operands, but
integer
quotient
when applied to two
integer operands.
n
n
2.0/4.0
-> 0.5
n
2/4 -> 0
n
5.0/4.0 -> 1.25
n
5/4 -> 1
n