Behaviour of VBA ROUND function

M

Microsoft Forum

Hi all,

I have a question of dealing with VBA ROUND function, the question is that
it doesn't do the rounding consistently.

For example:

ROUND(100.5) -> 100
ROUND(100.6) -> 101
ROUND(100.55,1) -> 100.6

Why is that? Is it a bug? Please advise.

Frederick Chow
Hong Kong.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top