8.9k views
1 vote
Is 3.050050005 an integer

2 Answers

6 votes
an integer is a whole number and not a fraction. 3.050050005 is a fraction so it is not a integer :)
User Justin Kominar
by
8.5k points
6 votes
No. An integer is a "whole number". If you write an integer as a decimal,
then all the digits to the right of the decimal point have to be zeros.

72.0000000000 is an integer.

72.0000000001 is not an integer.
User Mark Mayo
by
8.4k points

Related questions

asked Aug 5, 2020 46.3k views
Vgru asked Aug 5, 2020
by Vgru
7.5k points
1 answer
1 vote
46.3k views