0

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.

8th Jan 2018, 2:41 PM
Sneh Singhal
Sneh Singhal - avatar
4 Answers
+ 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?
8th Jan 2018, 3:39 PM
Kirk Schafer
Kirk Schafer - avatar
0
yes floats are general the numbers represented after decimal places. examples 12.0,123.345.
8th Jan 2018, 2:52 PM
Satish
Satish - avatar
0
we can create floats
8th Jan 2018, 2:54 PM
Satish
Satish - avatar
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.
8th Jan 2018, 4:08 PM
Satish
Satish - avatar