- 21 Jun 2022
- 1 minute to read
Grade calculation functions
- Updated on 21 Jun 2022
- 1 minute to read
There are a number of grade calculations supported in Totara Learn. Every calculation must start with an equals sign (=), and you can use commas (,) as a separator.
Certain language packs use different characters for some functions. These are as follows:
- Separator: English uses a comma (,) some other languages use a semicolon (;)
- Decimal: English uses a dot (.) some other languages use a comma (,)
Function | Example | Purpose |
---|---|---|
Average | =average([[item1]], [[item2]]...) | Shows the average of the grades included. |
Maximum grade | =max([[item1]], [[item2]]...) | Shows the maximum (highest) grade in the list. |
Minimum grade | =min([[item1]], [[item2]]...) | Shows the minimum (lowest) grade in the list. |
Power | =power(base, power) | Raises a number to the power of another. |
Round | =round(number, count) | Rounds a number to a predefined accuracy. |
Sum | =sum([[item1]], [[item2]]...) | Returns the sum total all all items included in the list. |
Multiple | =[[item1]]*[[item2]] | Multiples one item by another using an asterisk (*) to represent a multiplication symbol. |
Divide | =[[item1]]/[[item2]] | Divides one item by another, by using a forward slash (/) to represent divide symbol. |
A number of mathematical functions are also supported:
- sin
- sinh
- arcsin
- asin
- arcsinh
- asinh
- cos
- cosh
- arccos
- acos
- arccosh
- acosh
- tan
- tanh
- arctan
- atan
- arctanh
- atanh
- sqrt
- abs
- ln
- log
- exp
The Totara Academy has a whole course dedicated to using Grading, completion, and certificates in Totara Learn. Here you can learn more on how to use these tools, see best practice, and give it a go yourself.
© Copyright 2024 Totara Learning Solutions. All rights reserved. Some content originally obtained via GPLv3 license and continues to be available under GPLv3. All other content is the sole copyright of Totara Learning Solutions.