How to use functions and constants in your calculations
You can use mathematical functions and constants (including dates and times) inside each calculation block.
When to use
Use the calculator block when you want to perform calculations inside your form. If you want to perform calculations with advanced operations, that's possible with the built-in mathematical functions and constants (including dates and times) in the calculator block. For example:
- Get the highest value of two given answers and use that highest value in a calculation;
- Perform a mathematical formula to determime the circumference of a circle.
These are just some examples. Basically you can calculate anything you want with the calculator block. Please have a look at our calculator features overview to see everything you can do with the calculator block.
How to use
In the article you're reading now we describe how to use mathematical functions and constants in your calculator blocks. For global instructions about the calculator block, please have a look at this article.
You can use the advanced options inside each operation. From the menu to add an operation, you will see a menu item
Function (if you have an empty form, you will see these menus directly). This includes all functions and constants, grouped by the type of function.
You can use all kinds of mathematical functions to help you perform the right calculations. The available functions are divided into the following categories:
Limiting- Contains functions to limit certain values, like
Floating point- Contains functions to work with floating point values, like
Exponentiation- Contains functions to perfom exponentiation, like
Trigonometry- Contains functions to perform trigonometrial calculations, like
Factorial- Contains functions to perform factorial calculations, like
Miscellaneous- Contains miscellaneous functions, like
Constants- Contains constans, like
π ≈ 3.14159,
e ≈ 2.71828and
c = 299,792,458 m/s, but also date and time constants, like
day (of month)and
day (of week);
After selecting the right function/constant, it depends on the selected function/constant what properties are available to configure the operation.
Please have a look at our calculator features overview to see all functions and constants you can use in the calculator block.
The calculator block has lots of features, so we have several ways to learn all about it.
Our help articles help you out on all different aspects of the calculator:
- How to add instant scores and calculations inside question blocks;
- How to use the calculator block;
- How to use operations in the calculator block (add, subtract, multiply, divide, equal);
- How to use given answers from respondents in your calculations;
- How to use scores in your calculations;
- How to use comparisons in your calculations;
- How to use functions and constants in your calculations (current article);
- How to use subcalculations (multistep formulas) in your calculations;
- How to use calculations with logic branches;
- How to use the outcomes of calculator blocks.
We also made some overviews of the capabilities that the calculator block provides: