Home
Index

# Variables & Stocks

A variable is a word that represents a number. These can be used as short hands (k is often 1,000) mathematical constants (pi is 3.1415926536), and as a way of storing useful numbers in a word.

To create a variable:

1. Type the name of the variable, then the equals sign, then the number value of the variable.

2. Type it on any other line to use it.

k = 1,000 | 1,000
k + 50 | 1,050
10k | 10,000
M = 1000k | 1,000,000

Notes

- Variables must be only one word (no spaces). You can use dots in your variable name, but commas and all operators (+, -, ^, %, etc) are not allowed.

- You can only define a variable's value on one line. Don't try to define it on lower lines and expect previous uses of the variable to hold their value.

- Variables are case sensitive, so you can have A and a with different values.

Tips

- If you want to use one variable in multiple documents, define it in the Numbers window.

Stocks work just like variables, except their values come from the internet. You add stocks to Soulver using the "Numbers" window. Use a stock in your document just as you would use a variable. Any lines that use stocks will be updated automatically if the stocks change.

Adding Stocks