FutureStarr

Calculator W Negative Sign

Calculator W Negative Sign

Calculator W Negative Sign

A calculator with a negative sign on it is a calculator that is designed to do the reverse of a calculation.

Calculator

via GIPHY

. To my knowledge, they are treated the exact same way, the only different being that minus is binary, and negative is unary. Other than that, I don't see any difference. So why do calculators have two separate buttons for them? In programming languages, there is no distinction between the minus and negative signs, it is only calculators that make the distinction. Is it for the reason I stated, or is it something completely different? I don't see how the unary vs. binary would have anything to do with how a calculator computes something, but I can't think of any other reasons. Does anyone know why?. To my knowledge, they are treated the exact same way, the only different being that minus is binary, and negative is unary. Other than that, I don't see any difference. So why do calculators have two separate buttons for them? In programming languages, there is no distinction between the minus and negative signs, it is only calculators that make the distinction. Is it for the reason I stated, or is it something completely different? I don't see how the unary vs. binary would have anything to do with how a calculator computes something, but I can't think of any other reasons. Does anyone know why?

$\begingroup$ In calculators I'm familiar with, pressing [unary minus] multiplies the displayed number by $-1$, while pressing [binary minus] pushes a subtraction operator onto the evaluation stack, awaiting a second operand. That is, the distinction is between "$-x$" (a number) and "$x - $" (an incomplete expression). $\endgroup$ (Source: math.stackexchange.com)

Negative

via GIPHY

. To my knowledge, they are treated the exact same way, the only different being that minus is binary, and negative is unary. Other than that, I don't see any difference. So why do calculators have two separate buttons for them? In programming languages, there is no distinction between the minus and negative signs, it is only calculators that make the distinction. Is it for the reason I stated, or is it something completely different? I don't see how the unary vs. binary would have anything to do with how a calculator computes something, but I can't think of any other reasons. Does anyone know why?

Besides the number buttons and those for the basic arithmetic operations of addition, subtraction, multiplication and division, a scientific calculator has an array of function buttons. Some of these calculate exponents, square roots and trigonometric functions. Among the function buttons, you'll find one with a minus sign (-) or a plus/minus sign (+/-) that changes the sign of the displayed number. That's the one you should use to display a negative number. It's more reliable than the subtraction operator button, which doesn't always work the way you expect. (Source: sciencing.com)

 

Related Articles