@irisolvohrc,
@L.Maas, You are right about the rounding in revit.
Irisolvohrc, You could solve this problem by using the round function within revit formulas.
ROUND(x)
The round function returns a number rounded nearest to a whole number. It doesn’t take into consideration rounding direction (round up or down). If the number is (for example) from 24.5 to 24.9, the function rounds it to 25. If it is from 23.1 to 23.4, the function rounds it to 23.
The syntax for the round function is: round( number)
number is the number to round.
ROUNDDOWN(x)
“x” is a unitless value that should return the smallest integral value less than or equal to x.
The syntax for the rounddown function is: rounddown (number)
number is the number to round down.
ROUNDUP(x)
“x” is a unitless value that should return the largest integral value greater than or equal to x.
The syntax for the roundup function is: roundup (number)
number is the number to round up.
Note that when numbers such as 23.5 are rounded, they can result in either 23 or 24. To produce a stable result, for all the .5 cases, we round to the larger integer. That means that 23.5 is rounded to 24, while -23.5 to -23.
Credits go to Revit Formulas for "Everyday Use" website revit-formulas-everyday-usage
I use this website a lot when I have to handle formulas in Revit.
If my post answers your question, please click the "Accept as Solution" button. This helps everyone find answers more quickly!
Best regards,
Niels Oomen
Cadac Group BV
Sr Consultant AEC