Is there a way to use the “round” function to round to the nearest 0.5?
EDIT; I know I can multiply by 2, round, then divide by 2… I’m looking for a more elegant solution.
Is there a way to use the “round” function to round to the nearest 0.5?
EDIT; I know I can multiply by 2, round, then divide by 2… I’m looking for a more elegant solution.
you can also round numbers to a specific number of decimals by doing something like this in your expression box:
round(variableName,1)
(the example above rounds to one decimal place)
plagiarizing @WCmore
To round to the nearest 0.5, that is the most elegant solution.
(here is a single line of code for the Expression
box)
round((X * 2),0) / 2
as seen in this little snippet: