Why float and double are named as Decimal ? Why int isn't decimal? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why float and double are named as Decimal ? Why int isn't decimal?

16th Sep 2019, 8:55 PM
UraL
3 Answers
+ 3
Thanx, I got it
16th Sep 2019, 10:33 PM
UraL
+ 3
When people talk about decimal numbers they sometimes mean two things based on context : one is the presence of a decimal point and the other is having a number base of 10. In the case of floats and doubles, they mean the first.
16th Sep 2019, 11:00 PM
Sonic
Sonic - avatar
+ 1
Sonic yes, I was second, base 10
17th Sep 2019, 10:09 AM
UraL