Rounding Issue
Posted: Tue Jul 07, 2015 7:53 am
Hello all, my input is decimal 4,2 and my output is smallint. So I am using Ceil func to get the closest value.
What I am expecting is
Ceil (7.04) =7
ceil(7.94)=8
But in both cases above, the output I am getting is 8. Let me know if there is another way around.
What I am expecting is
Ceil (7.04) =7
ceil(7.94)=8
But in both cases above, the output I am getting is 8. Let me know if there is another way around.