previous
|
start
|
next
Syntax 3.3 : Cast
(
typeName
)
expression
Example:
(int)(x + 0.5)
(int)Math.round(100 * f)
Purpose:
To convert an expression to a different type
previous
|
start
|
next