What do you need this function for?

Yes, I know what's the function for.I mean what's your aim?

INTEGER(my_val) + IF(INTEGER(my_val*100)/100 - INTEGER(my_val) < 0.5, 0, 1)