Integers | SoloLearn: Learn to code for FREE!



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

7/13/2019 11:15:57 PM

Amy Michelle Walker

4 Answers

New Answer


As *AsterisK* said, when you add the decimal point, it is no longer considered an integer.


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


I see what i did there.


what i meant to ask was “In what situation would one write 7.0 instead of the integer of 7”?