CALC 1 Home Documentation Home Contact

CALC 1 Function Parameters Editor

This editor allows the addition, deleting and reordering of the function parameters.

The parameter Name and Hint can be edited, as well as the optional Label.

Addition, Deleting and Reordering

Tap the edit button at the top of the editor.

Then tap the add (+) button to add a parameter.

You can drag the rows to order the parameters. This sets the order of the keys on the calculator. Use this with caution. If the function us being called by other functions (using fnDefinition()) changing the order of the parameters will cause errors.

Tap the delete button on the left of the row to delete the parameter.

Parameter Properties

The Name field must match the variable name in the body of the function. This is the only required field of the parameter.

From MDN;

A JavaScript identifier must start with a letter, underscore (_), or dollar sign ($); subsequent characters can also be digits (0-9). Because JavaScript is case sensitive, letters include the characters "A" through "Z" (uppercase) and the characters "a" through "z" (lowercase

The Hint field is optional but strongly recommend. It is used for key hints and to describe the values in the history detail. CALC 1 prefixes parameter with "Stores ", "Solves for "for the key hints and history so word the hint accordingly and without a period.

The Label is an optional key label. If there is no key label the Name will be used for the key label. Sometimes parameter names do not make good key labels so this field is available for those cases.