@ar999ar wrote:
Needed to return.
That new separate parameter must be rounded to 2 decimal places, but I can't find how to do it.
Formula: rounddown(Area / 1 m²) gives 0 places. Tried few options - no result.
Any ideas?
thanks
You may have sorted this out by now, but for others coming across this thread who want to use a calculated value that rounds to a given decimal place, rather than a whole number, what you need to do is multiply the initial number by ten raised to the number of decimal places you want, round that number, then divide by that same factor.
For example, say the raw area is 123.4567 square feet, and you want to round down to two decimal places. First multiply the raw area number by 100 (ten to the second power), giving 12345.67 square feet. Apply the rounddown to that value, giving 12345 square feet, then divide that by 100, to get 123.45 square feet. More details can be found in this blog article, if you are interested. (That article also shows how to process an area value, which has units attached to it, in the Revit rounding functions, which require numeric input with no units.)
Similar techniques can be used to get rounding to other values. For example, to round the the nearest 5 square feet, divide the number by 5, do the rounding, then multiply the result by 5.
David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
