Graphics Programs Reference
In-Depth Information
unless you do some sort of conversion. In most but not all cases, simply
multiplying or dividing by 1 does the trick.
Rounding
Prior to Revit 2012, there were two options for rounding numbers: running
them through an integer parameter (which automatically rounds them up)
or adding 0.49 to the formula. In most formulas, the rounding needs to be
to the next higher whole number, even if the number isn't higher than 0.5,
such as for the occupancy of people. If the number is 2.4, it really needs to
be 3. For example, 2.4 + 0.49 = 2.89, which will be rounded to 3.
As of Revit 2012, we have three additional functions to use: Round(x) ,
Roundup(x) , and Rounddown(x) . Note that x is unit-less (also known as
a number, not CFM, not GPM, and so on). The Round(x) function rounds
to the nearest whole number:
round (1.2) = 1
round (1.5) = 2
round (1.7) = 2
round (-1.2) = 1
round (-1.5) = 1
round (-1.7) = 2
The Roundup(x) function rounds to the largest whole number greater than
or equal to x , such as in the following example:
round (1.0) = 1
round (1.4) = 2
round (1.6) = 2
round (-1.0) = -1
round (-1.4) = -1
round (-1.6) = -1
The Rounddown(x) function rounds to the smallest whole number less
than or equal to x , as in this example:
Search WWH ::




Custom Search