| ||||||||||||||||||
Variables, Constants, Functions
Variables and constants are basically names which refer to a number. Such names, and those of functions, are written as a letter or underscore character, optionally followed with any combination of letters, digits or underscore characters. There can be up to 15 characters in a name.
UltimaCalc has some special variables which include last (which
always equals the last value calculated) and the constant pi which is equal to 3.14159265...
If you define variables, constants, or functions, and you have not specified a file in which to save them, you will be warned when the program is about to end, and will be given an opportunity to specify the file if you wish to save your variables.
Example names: A, AGE, A_VeryLongName,
UB50, X_19A
All variables, constants, and
functions remain defined until you delete them. They are stored when you
end the program, and are read back in next time you run it. If you delete the file that contains the
constants, a new file will be created, but you will lose everything you defined, leaving only the values
of pi and last. You can specify this file by using the
Options - Paths window.
To view all variables, constants, and functions currently defined, and to change their properties, use the menu item View / Variables. This will display the Variables window which will allow you to delete unwanted variables and constants, to convert a variable to a constant or vice versa, or to define or edit your own functions.
