buzz44 Posted June 3, 2005 Posted June 3, 2005 Is this correct?MsgBox(0,"", Round(7, 2))Will return "7", should it return "7.00" or is that not how Round() works? qq
jpm Posted June 3, 2005 Posted June 3, 2005 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now