0

How is a float declared???

How is a float declared

3rd Feb 2017, 7:25 AM
grace barnoh
grace barnoh - avatar
3 Respostas
+ 1
float p; p=6.0f; the f denotes float value. if you don't give it then the value will be double.
3rd Feb 2017, 4:13 PM
Wazed Ali Gazi
Wazed Ali Gazi - avatar
0
float pi = 3.14; Remember that it is with dot(.) not comma(,).
3rd Feb 2017, 7:41 AM
Felipe Cruz
Felipe Cruz - avatar
0
Thank you
3rd Feb 2017, 7:44 AM
grace barnoh
grace barnoh - avatar