I have used round function in a DB. but it gives results as follows :
function returns
round(1.5) 2
round(2.5) 2
round(3.5) 4
round(12.5) 12
round(13.5) 14
.
.
.
.
I could not understand where the figure contains value 2 the .5 is not rounded to next digit but a previous one.
Could anybody suggest me the solution of this problem/bug.
function returns
round(1.5) 2
round(2.5) 2
round(3.5) 4
round(12.5) 12
round(13.5) 14
.
.
.
.
I could not understand where the figure contains value 2 the .5 is not rounded to next digit but a previous one.
Could anybody suggest me the solution of this problem/bug.