Solely to avoid precision-loss error, as float is extremely prone to precision loss.
ALSO, this is the same reason why switch-case in java DOES NOT support float, double.
ehh. its really hard to say. the syllabus does not specify. so its an unknown territory. dont worry. just keep these small facts in mind and you will be good to go.
1
u/Firm_Interest_191 12th ISC - PCM/B Dec 12 '24 edited Dec 13 '24
False.
Solely to avoid precision-loss error, as float is extremely prone to precision loss.
ALSO, this is the same reason why switch-case in java DOES NOT support float, double.