¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
we cannot create floats
In the float chapter its written we cannot create floats by adding zero or performing calculations. but when I typed 4.0 the answer was 4.0 so it was float. so what is it really.
4 Respuestas
+ 4
The text I believe is closest to your question reads:
"They can be created directly by entering a number with a decimal point... Extra zeros at the number's end are ignored."
To me, the meaning is different than your question. Am I missing something, like a translator / language issue?
0
yes floats are general the numbers represented after decimal places. examples
12.0,123.345.
0
we can create floats
0
no in general after decimal point zeros can be neglected but in case of any programming languages. because some amount of pre memory space is allocated for it . as the program lang are case sensitive we should follow few basic rules to know more about that.