Technology
 

From TI-BASIC Wiki - The free TI-BASIC encyclopedia

:value→variable

Will store all data on the left side of the arrow into the variable on the right side of the arrow. If a variable can only hold a certain type of data, this function will fail if the wrong data is being placed into the wrong variable (attempting to place a list in Str1 on the TI-84, or a list in y1(x) for example)

[edit] Location

  • STO

[edit] Example

:ClrHome
:5→Y
:Input "NUMBER:",X
:X+Y→Z
:Disp Z

This program will first store 5 in the variable Y. Then it will ask the user for a number and place it in X. It will then add the variables X and Y and store the result in a new variable Z. It will display Z.