Chat with our AI personalities
i hate you Edlorna Mae bye forrever
They are the same. A fraction is one integer divided by another integer. A rational number can be expressed as the quotient of two integers. If you're wondering about the easier method for dividing two fractions, say ( a / b ) / ( c / d ) it would be ( a / b ) * ( d / c ).
It completely depends the datatype that you have assigned for the variables 'a' , 'b' , and 'c'. Check the compiler that you are using for the size of the datatype in bytes. Add them and thus you will get the answer.
An even integer
Look at it the other way - by reverting the operation. The reason it is not a whole number is because if it where, then the subtraction of two integers would be a fraction! If a + b = c (a is a non-integer fraction, b and c are integers), then c - b = a. You would have a fraction as a result of subtracting two integers. However, adding or subtracting two integers always gives you an integer.