# List of TeX commands for Generic Problems¶

TODO - Work in progress.

**Default value** is the value that the command will get when it is omitted from the TeX file.

TeX-Command | Description |
---|---|

`\correctorprecision{<number>}` |
Default value: 2defines the amount of digits that will be used behind the decimal mark, indicated by `<number>` , when correcting the final answer of the student. |

`\displayprecision{<number>}` |
Default value: 2defines the amount of digits that will be visible behind the decimal mark, indicated by `<number>` , when displaying the number on the screen. Numbers defined through `\randdouble` are rounded to the same number of digits behind the decimal mark. Typically the displayprecision $\ge$ correctorprecision. Displayprecision only affects variables of type `\randdouble` , results of calculated functions will always display the full double value, unless the command below is used. |

`\function[calculate, <number>]{<var>}{<expression>}` |
Default value: 16Will calculate the `<expression>` and round the result according to the value of `<number>` . The option `<number>` , should only be used when you want to display the result of the calculated function on the screen. If `<number>` is not provided calculate will result in a number with an accuracy of up to 16 digits behind the decimal mark. |