Integers | SoloLearn: Learn to code for FREE!

+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?

7/13/2019 11:15:57 PM

Amy Michelle Walker

4 Answers

New Answer

+2

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

+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

0

I see what i did there.

0

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