hi al,
I have numbr
x=0.25
when i use
Round(x,1)
the value i get is 0.2 when expecte 0.3
any idea what is going on?
hi al,
I have numbr
x=0.25
when i use
Round(x,1)
the value i get is 0.2 when expecte 0.3
any idea what is going on?
When the decimal is exactly 0.5 Excel defaults to rounding down - obviously it has to round one way or the other.
If you want to round up then use
=ROUNDUP(x,1)
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star icon below the post.
It's a Bankers’ Rounding.
If there are two nearest integers then it goes to the even one.
So better use worksheetfunction.round for the safety...
thanks....i will use the worksheet function
application.worksheetfunction.round
in excel vba.
I'd go for VBA equivalent.
Please Login or Register to view this content.
Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.
thanks all.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks