I typed your numbers into a sheet and it automatically formatted as you have displayed. I checked the format, right clicked into cell and picked "Format Cells", then "Number" and checked the format and it was formatted simply as "Decimal Places:" = to 2.
Thanks, David On Saturday, February 24, 2018 at 11:29:31 AM UTC-8, 3xs...@gmail.com wrote: > Hi all, > > This may be an easy one and I'm just not understanding formatting... > > I have calculations which give numbers like: > > 0.037999999 > 9.899999619 > 4.900000005 > 0.018999999 > 0.349999994 > > I'll be printing (or writing) data to a file using vba > But the numbers I want are: > > 0.038 > 9.9 > 4.9 > 0.019 > 0.35 > > Is there an obvious way to do this? I note when the numbers are in > columns then the values I want show properly unless I widen the column. So > Excel is doing some internal formatting in that case. > > Thanks in advance! > -Jim > -- Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To unsubscribe from this group and stop receiving emails from it, send an email to excel-macros+unsubscr...@googlegroups.com. To post to this group, send email to excel-macros@googlegroups.com. Visit this group at https://groups.google.com/group/excel-macros. For more options, visit https://groups.google.com/d/optout.