Get a head start in 6 simple steps!
See what others have made with Triggre
Explore the killer features of the Triggre platform
Browse all available templates at your own leisure
Take a look at the Triggre Designer to see how it works
Learn all the ins and outs of the Triggre methodology. From ideation and building to selling your application!
Need some help? This is where to find the answers!
Get in-depth information about cases, digitalization and Triggre
Connect with the Triggre Creator community
The formula to calculate age is: (Current date – Date of birth) / 1 year.
Triggre does not know ‘year’, so you have to use 365.25 * 1 day. This takes account of leap years.
The result is a number with six decimals. You must reduce that to the integer value: 46.653876 must become 46.
There are two ways to do this:
Triggre will round the outcome up or down, depending on the value. But, when calculating age, round up, you always want to round down. For example, 46.7 should become 46, not 47.
Rounding down a numberTo make Triggre round numbers down, you subtract 0.5 from the value before you store it.
ExplanationLet’s use the age of 46 as an example. The smallest possible result of the function is 46.000000, the largest is 46.999999. When you subtract 0.5, they will become 45.500000 and 46.499999. When you store these values or any value in between, Triggre will round them to 46.
4. The result displaying the different calculations made in this article.
Copyright © 2020 - Triggre. All rights reserved.
Get started for free and experience the power of the Triggre platform.
By signing up for your free account, you agree to receive e-mails from Triggre.