float f = 99.32f ;
That is a float
literal, which means a float variable being assigned with a float
value directly.
float f = (float) 99.32 ;
That is a float
variable that is assigned a double
value that is cast to float
before being assigned.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…