http://learn.cemetech.net/index.php?title=TI-BASIC:Subtract&feed=atom&action=history TI-BASIC:Subtract - Revision history 2022-08-14T00:00:30Z Revision history for this page on the wiki MediaWiki 1.34.0 http://learn.cemetech.net/index.php?title=TI-BASIC:Subtract&diff=864&oldid=prev Maintenance script: Initial automated import 2016-02-24T18:22:32Z <p>Initial automated import</p> <p><b>New page</b></p><div>{{Template:TI-BASIC:Command<br /> |picture=SUBTRACT.GIF<br /> |summary=Returns the difference between two numbers.<br /> |syntax=''value1'' - ''value2''<br /> |location=Press [-]<br /> |compatibility=TI-83/84/+/SE<br /> |size=1 byte<br /> }}<br /> <br /> The - (subtract) operator takes two numbers, variables, or expressions and subtracts one from the other, thus returning the difference between them. The - operator appears lower in the order of operations than both [[TI-BASIC:Multiply|*]] and [[TI-BASIC:Divide|/]], so if those appear in an expression, they will be executed first. In addition, the [[TI-BASIC:Add|+]] operator has the same order of operations as -, so the calculator simply executes them left to right in the order that they appear.<br /> <br /> :1-1<br /> 0<br /> <br /> :5→X<br /> :2-3X<br /> -13<br /> <br /> :2→A:3→B<br /> :A/B-B/A<br /> -.8333333333<br /> <br /> = Error Conditions =<br /> <br /> * '''[[TI-BASIC:Errors#syntax|ERR:SYNTAX]]''' is thrown if you try to use - (subtract) in place of [[TI-BASIC:Negative|‾]] (negative). Because they look very similar, it's easy to get this error; at the same time, it's an easy error to fix.<br /> <br /> = Related Commands =<br /> <br /> * + ([[TI-BASIC:Add|Add]])<br /> * * ([[TI-BASIC:Multiply|Multiply]])<br /> * / ([[TI-BASIC:Divide|Divide]])[[Category:TI-BASIC]]<br /> [[Category:TIBD]]</div> Maintenance script