Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

Casting Primitives
Create a float number type of any value, and assign it to a short using casting.
1. Declare a float variable: float f = 234.56F;
2. Assign the float to a short: short s = (short)f;
Posted By: Name:Rajesh Kr URL: Casting Primitives