2-2-4

Basic Calculations

Assigning a Value to a Variable

Besides using the variable assignment key (6, page 1-7-6), you can also use the syntax shown below in the Main application and eActivity application to assign a value to a variable.

Syntax: Variable: = valueExample: Assign 123 to variable x

SClassPad Operation

(1) Perform the key operation below in the Main application work area.7+@AB(2) U

Important!

“:=” can be used only in Main and eActivity. It can NOT be used in a program. In the Program application, you must use 6to store a value to a variable.

Calculation Error

An error message dialog box, like the one shown below, appears when there is a problem with the syntax of an input expression or value, when the number of decimal places of a calculation result in the Standard mode (page 2-2-6) exceeds a specified range, etc. Tap [OK] to close the dialog box and return to the calculation.

Tip

The text of the error message dialog box depends on the type of error that occurred. For details, see the “Error Message Table” on page α-10-1.

If you perform a calculation that is mathematically undefined (such as division by zero), the message “Undefined” appears in place of the calculation result, without display of an error message.

20060301