+ 1

Is this statement correct? float f = (float)1.4;

26th Jan 2021, 8:49 AM
Alrabab Saeed
Alrabab Saeed - avatar
2 Antworten
+ 3
Yep. float f = 1.4f; Does the same thing.
26th Jan 2021, 8:55 AM
XXX
XXX - avatar
+ 3
Ya it is about type casting.
26th Jan 2021, 11:15 AM
Kalindu Pro Max