When creating an assembly, a number of functions are available to facilitate calculations.
The most common functions are:
ceil(x): calculates upper integer rounding (ceil = ceiling)
floor(x): calculates the lower integer rounding (floor = floor)
round(x,n): returns integer rounding to nearest value specified in parameter
trunc(x,2): returns a number with two decimal places only
if(?,x,y): The if statement, used in conjunction with a logical comparison operator, is used to test whether a condition is true. In our case, X = yes and Y = no.
Example formula:
ceil(floor area/material_area)
if(garantie_platinum==1, garantie_platinum, 0)