Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Nov 2001
    Location
    Brisbane, Queensland, Australia
    Posts
    330
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Formatting a calculation result in VB Express 2008

    I have a 6 to 9 decimal number as the result of a calculation and I need to reduce it to 3 decimals before I write it to a text file. Is there a quick way to do it? Or do I have to *1000 it, int it and then /1000 it?

    Hoping to learn if there is anything new.

    Regards, Allan
    "Heading for the deep end"

  2. #2
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,012
    Thanks
    344
    Thanked 1,390 Times in 1,265 Posts
    Allan,

    Use the Round function.
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •