Rounding a variable

This feature allows you to round the value of a variable

If the concept of a variable is totally abstract for you, I advise you to consult the following article before continuing: All about {{…}} variables.

1. Use

Among the construction features, click on “Variables” and then, in the menu that opens, click on “Round”.

This adds the following feature:

You can choose the type of rounding you want.
For example, if the type of the number is “Rounded to an integer”, then the options will have the following behavior:

  • Rounded to the nearest number
    1.3 will become 1 and 4.8 will become 5
  • Upper rounding
    1,3 will become 2 and 4,8 will become 5
  • Lower rounding
    1.3 will become 1 and 4.8 will become 4

You can also choose the final type of the variable.
For example, if the rounding type is “Round to nearest number”, then the options will have the following behavior:

  • Rounded to an integer
    1.321 will become 1 and 4.876 will become 5
  • Rounded to 1 decimal place
    1.321 will become 1.3 and 4.876 will become 4.9
  • Rounded to 2 decimal places
    1.321 will become 1.32 and 4.876 will become 4.88

2. Options

A – You can leave a comment to your collaborators about this feature by clicking on the icon (see below).
View Article : Add Comments

Comment

B – By clicking on the “?” icon, the online help will open on the article corresponding to this functionality.

Feature online help

C – You can duplicate, delete or move this feature by using the icons that appear on the hover.

Move, duplicate and delete a feature

Create your Chatbot Easily and for Free!