(^620) | Multidimensional Arrays and Numeric Computation
5.Be wary of representational, cancellation, overflow, and underflow errors. If
possible, try to arrange calculations in your code to keep floating-point num-
bers from becoming too large or too small.
6.If your code increases the value of a positive integer and the result suddenly
becomes a negative number, suspect integer overflow.
7.Avoid mixing data types in expressions, assignment operations, argument
passing, and the return of a method value. If you must mix types, explicit type
casts can prevent unwelcome surprises caused by implicit type conversion.
T
E
A
M
F
L
Y
Team-Fly®
やまだぃちぅ
(やまだぃちぅ)
#1