
Announcements
Hello thanks in advance. I have a funtion that return a number currently i am rounding using this
int(first(split(string("FUNCTION",'.')))
it rounds to a whole number but what i need is to ble able to round to .5 as well. For example:
1.13 to 1
1.42 to 1.5
1.61 to 1.5
1.86 to 2
While it shows how to round to a whole number, a slight variation will get you where you want to go.