Jump to content

Recommended Posts

Posted

Is this correct?

MsgBox(0,"", Round(7, 2))

Will return "7", should it return "7.00" or is that not how Round() works?

<{POST_SNAPBACK}>

It is working as design.

You have to understand Round work on the internal value.

When you use msgbox you get a conversion from internal to external and if the trailing decimal value are 0 there are not displayed.

If you want to force fix decimal display you have to use StringFormat :(

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...