Start a conversation

General calculation templates

  • Force not to round a calculation result

    In Castor, a calculation used to perform mathematical operations applies rounding to two decimals by default. For example, we have two variables and we know that the result of adding them up should be...

  • Validate capital letters in a text field

    It is possible to check if a text field contains only capital letters. This is done using  regular expression (/^[A-Z]+$/).  The following template will allow you to validate the capital letters: if (...