fraction, a whole number, and something else that i don't know.
Some examples are 1/3, -4/7, 5 3/4, -6.37
Examples are: 1/4, 3/4, 7/8. 8/4 is not because 8/4 is 2 which is an integer. A non-integer rational number is a number that can be written as an exact fraction or as a terminating decimal. A non-integer has no digits to the right of the decimal point. Since -1.6 has one or more digits to the right of the decimal point, it is not an integer. Fractions are non-integers. ∏ (Pi) is also a non-integer.
The number 4 is an integer (the Number 4.1 is a real number and not an integer) The number 2 is an integer (the number 2.9 is a real number and not an integer) 4-2 = 2 4+2 = 6 The above are examples of how the integers 4 and 2 can be added or subtracted.
29 is an integer. More examples of integers: ...-5,-4,-3,-2,-1,0,1,2,3,4,5...
Aninteger by definition must be a whole number... no 5.5 or 1/3 . Examples of integers are 3, -3, and 0. So YES a positive integer (or a negative integer ) is a whole number.
An integer is a positive whole number. So, and thing less than one, or a decimal. Examples: 1.5 -5 12.6 -2.32
FILE, struct stat and struct tm are some examples.
All integers are rational numbers.
A prime number is a positive integer with two factors: one and the number itself. Examples: 2, 3, 5 and so on.
A rational number is a fraction with an integer in the numerator, and a non-zero integer in the denominator. If you consider pi/2, pi/3, pi/4 (common 'fractions' of pi used in trigonometry) to be 'fractions', then these are not rational numbers.
A negative number that is not an integer, of course. Examples are minus 1.5, minus pi, minus square root of 2, etc.
A rational number is one that can be represented as an integer or a fraction with an integer over an integer. An irrational number cannot be represented using integers. Examples of rational numbers: 2, 100, 1/2, 3/7, 22/7 Examples of irrational numbers: π, e, √2