Integer Math Tips


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jul 2010
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    Alain,

    I think I understand what you mean with the comment about the measurement range. Maybe I could just make two cases or simply make Vout have a range from say 3 to 1023. That way I could really scale up the numerator and still have a result within the bounds of a WORD.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Here's one of the best sites I know of for tips & tricks working with integer math on small systems: http://www.emesystems.com/BS2index.htm
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    Join Date
    Jul 2010
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    Thank you Bruce, that page has a wealth of information!

    There is even a section on my particular problem of division where the denominator is a variable.

    Let's see how they do it...

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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