Math problem that won't work


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Math problem that won't work

    What if you multiply/divide by more than 100 to pick up extra decimals?

    Robert
    Last edited by Demon; - 16th August 2012 at 20:10.

  2. #2
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425


    Did you find this post helpful? Yes | No

    Default Re: Math problem that won't work

    Obviously it's not perfect because (1*100)/127 will still return 0
    I'm not making NASA type products here so even if there is a 2 or 3% error, the end user probably wouldn't know. And if they did know, they won't care. That tip worked out great, thanks Henrik.
    What if you multiply/divide by more than 100 to pick up extra decimals?
    The more the merrier but you can't have an amount that is greater than a word sized variable. I've found that in most cases you don't need a long to do decent math.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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