+ 1

Integers

What determines whether or not an integer is written with a decimal? In other words, why would 7.0 be written instead of 7?

13th Jul 2019, 11:15 PM
Amy Michelle Walker
Amy Michelle Walker - avatar
4 Respostas
+ 2
As *AsterisK* said, when you add the decimal point, it is no longer considered an integer.
14th Jul 2019, 1:33 AM
Sonic
Sonic - avatar
+ 1
any integer with the decimal point is known as a floating point value, which you can use if you want your results in a decimal form
13th Jul 2019, 11:42 PM
✳AsterisK✳
✳AsterisK✳ - avatar
0
I see what i did there.
14th Jul 2019, 8:48 PM
Amy Michelle Walker
Amy Michelle Walker - avatar
0
what i meant to ask was “In what situation would one write 7.0 instead of the integer of 7”?
14th Jul 2019, 8:48 PM
Amy Michelle Walker
Amy Michelle Walker - avatar