how to subtract two numbers without using minus operator?
243715
Subtract two numbers without using arithmetic operators. Write a function subtract(x, y) that returns x-y where x and y are integers. The function should not use any of the arithmetic operators (+, ++, –, -, .. etc). The idea is to use bitwise operators.
80122
Use the Minus Sign to Subtract in Google Sheets The only difference is that you refer to cells instead of numbers. For example, to subtract two numbers on paper, you'd write something like 45-17. Google Sheets can do this, but you reference the cells instead of the values, such as B1-C3.
1226121
['Type negative 1 in any blank cell,', 'copy that cell,', 'select the entire column that you wish to make negative,', "now 'paste special' selecting options 'values' and 'multiply'.", 'Now all the numbers in this column should be negative.']
834136
To subtract integers, change the sign on the integer that is to be subtracted. If both signs are positive, the answer will be positive. If both signs are negative, the answer will be negative. If the signs are different subtract the smaller absolute value from the larger absolute value.
89174
Subtracting Whole Numbers. To subtract whole numbers we write them as in an addition problem and subtract each digit moving from the right to the left. If when subtracting digits, the top number is smaller than the bottom, borrowing becomes necessary.
362681
Rule 3: Subtracting a negative number from a negative number—when you see the subtraction (minus) sign followed by a negative sign, turn the two signs into a plus sign. Thus, instead of subtracting a negative, you are adding a positive. So, – -5 becomes +5, and continue normally with the addition.
410871
Tips. Google spreadsheets can also subtract using the MINUS function. "=MINUS(A1,A2)" is equivalent to "=A1-A2."
25531
Rule 4: Subtracting a negative number from a positive number—when you see the subtraction (minus) sign followed by a negative sign, turn the two signs into a plus sign. Thus, instead of subtracting a negative, you're adding a positive, so you have a simple addition problem.
943386
Subtract, don't add, the fractions. The correct answer is . Subtracting mixed numbers works much the same way as adding mixed numbers. To subtract mixed numbers, subtract the whole number parts of the mixed numbers and then subtract the fraction parts in the mixed numbers.
589742
['If the number of seconds being subtracted is larger than the original seconds, you must borrow some seconds from the minutes: Subtract 1 from the original number of minutes. Increase the number of original seconds by 60.', 'Subtract the seconds.', 'Subtract the minutes.']
155231
['Select the text or number that you want.', 'For superscript, press Ctrl, Shift, and the Plus sign (+) at the same time. For subscript, press Ctrl and the Equal sign (=) at the same time. (Do not press Shift.)']
887463
['Step One: subtract the second hours, minutes, and seconds from the first separately.', 'Step Two: if the seconds are a negative number, then add 60 seconds and subtract 1 minute.']
1329120
Rule 3: Subtracting a negative number from a negative number – a minus sign followed by a negative sign, turns the two signs into a plus sign. So, instead of subtracting a negative, you are adding a positive. Basically, - (-4) becomes +4, and then you add the numbers. ... This would read “negative two minus negative 4”.
834948
Subtract two or more numbers in a cell Click any blank cell, and then type an equal sign (=) to start a formula. After the equal sign, type a few numbers that are separated by a minus sign (-). For example, 50-10-5-3.
558328
Subtracting Polynomials. To subtract Polynomials, first reverse the sign of each term we are subtracting (in other words turn "+" into "-", and "-" into "+"), then add as usual.
1124005
['subtract the Y values,', 'subtract the X values.', 'then divide.']
1145444
Rule 3: Subtracting a negative number from a negative number – a minus sign followed by a negative sign, turns the two signs into a plus sign. So, instead of subtracting a negative, you are adding a positive. ... So we're changing the two negative signs into a positive, so the equation now becomes -2 + 4.