Hello all, I have a question regarding the round() function. What I want to do is this: for every number (in this case, X), I always want X.01 - X.49 to round down, and X.50 to X.99 to round up. In fact, even better would be this:

If I am interpreting the round() function correctly, you have to call out these roundup/rounddown functions individually, for each number. What I'm trying to do is round up or down discharge or return openings that aren't exactly to the half inch. You have to define each duct size in Revit, and it's not reasonable to add a 12-3/16" wide by 10-5/8" tall duct size for the Duct Connector itself just for an anomaly from an equipment manufacturer. This would be excellent for BOM takeoffs of things like canvas connectors, transition pieces, etc. So I'd like to have a roundup/rounddown function that applies for all numbers for the ranges I listed above.

Thanks in advance!

-TZ

- X.01 to X.24 would round to X.00
- X.25 to X.49 would round to X.50
- X.51 to X.74 would round to X.50
- X.75 to X.99 would round to Y.00 (Y being the number above)

If I am interpreting the round() function correctly, you have to call out these roundup/rounddown functions individually, for each number. What I'm trying to do is round up or down discharge or return openings that aren't exactly to the half inch. You have to define each duct size in Revit, and it's not reasonable to add a 12-3/16" wide by 10-5/8" tall duct size for the Duct Connector itself just for an anomaly from an equipment manufacturer. This would be excellent for BOM takeoffs of things like canvas connectors, transition pieces, etc. So I'd like to have a roundup/rounddown function that applies for all numbers for the ranges I listed above.

Thanks in advance!

-TZ

## Comment