When zeros at the end are ignored how 4.0 is considered as float | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

When zeros at the end are ignored how 4.0 is considered as float

10th Jan 2017, 3:57 PM
Anuhya
2 Answers
+ 20
The value is in Decimal
10th Jan 2017, 3:57 PM
Frost
Frost - avatar
0
whenever a number is preceded by a . it's considered a float, the zero is just placed in there to occupy the blank space after the . It's like the 0 in 0.6 you could just write .6 but the zero is there to take a space left blank
10th Jan 2017, 9:42 PM
ramzi
ramzi - avatar