+ Reply to Thread
Results 1 to 3 of 3

How to set significant figures when calculating values in code?

  1. #1
    Registered User
    Join Date
    05-25-2006
    Posts
    42

    How to set significant figures when calculating values in code?

    In my code, I'm calculating a very simple ratio and have the result displayed in a message box. However, I want to have this value only show 1 or 2 significant figures (e.g. if I take 9 / 7, I want to show 1.3 and not 1.28571).

    How do I do this?
    Last edited by gonger; 07-08-2009 at 05:01 PM.

  2. #2
    Registered User
    Join Date
    05-05-2009
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2003
    Posts
    97

    Re: How to set significant figures when calculating values in code?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-25-2006
    Posts
    42

    Re: How to set significant figures when calculating values in code?

    gtmeloney - perfect! thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1