Article ID: 178434
Article Last Modified on 9/11/2002
1.15
0.075
8.885
X = Format(0.075, "$#.##")
use this:
X = Format(Application.Round(0.075, 2), "$#.##")
The Round method accepts two arguments; the value to be rounded (in
this case, 0.075), and the number of decimal places to which you want
the value to be rounded (in this case, 2).
X = Format(0.075, "$#.###")
Because the value and the format expression both use three decimal
places, the problem will not occur.MsgBox Format(0.075, "$#.##")In Microsoft Excel 5.x for Windows, the message box displays the value $.08. In Microsoft Excel for the Macintosh, version 5.x, and Microsoft Excel 98 Macintosh Edition, the message box displays the value $.07.
Additional query words: XL98 XL5 IEEE
Keywords: kbprb KB178434