+ 2
Could you tell me why this declaration give an error on Sololearn: float a= 42.8;
6 Antworten
+ 6
float a = 43.8f;
Try this
+ 5
https://code.sololearn.com/cUgMY1ewzZFZ/?ref=app
you have forgotten to use f after the value declaration
+ 2
Theo Martier , change it to float a = 42.8f;
+ 1
Thank you everybody
I think it can be a problem to use flaot type with this "f" for precision during a calculation😕
0
Thank you but isn't it a flaot too (with bo too much figure after the comma)
0
...not too much..