10.04.2014 Views

to get the file

to get the file

to get the file

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Arithmetic Opera<strong>to</strong>rs and Expressions<br />

• +, -, *, /, %, ++, --<br />

• For +,- and *, if ei<strong>the</strong>r operand is double, <strong>the</strong>n it<br />

produces a double result<br />

• If <strong>the</strong> result of integer division is not an integer, a<br />

double is returned<br />

• Any integer operation that results in overflow produces<br />

a double<br />

• The modulus opera<strong>to</strong>r (%) coerces its non-integer<br />

operands <strong>to</strong> integer<br />

19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!