lundi 5 septembre 2016

What is the difference between casting to `float` and adding `f` as a suffix when initializing a `float`?

What is the difference between

float f = (float) 99.32 ;

and

float f = 99.32f ;

Both of them compiled and ran successfully.

Aucun commentaire:

Enregistrer un commentaire