+ 1

What f means in this code?

float x=12.7; x-=10.6; cout<<(x==2.1f)

12th Nov 2019, 3:38 PM
Davron
Davron - avatar
2 Réponses
+ 2
2.1f =>means 2.1 of type float data. 2.1 =>means 2.1 of type double(default case). 2.1d =>means 2.1 of double data type.
12th Nov 2019, 3:47 PM
Jayakrishna 🇮🇳