better way to do this using math


Results 1 to 8 of 8

Threaded View

  1. #3
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Re: better way to do this using math

    Power 2 to the value of val ( 2^val) and you will get the same value as your lookup table.
    Since 2^0 = 1 you will use an if then to turn it into zero.
    Cheers

    Al.
    Last edited by aratti; - 5th August 2014 at 01:47.
    All progress began with an idea

Similar Threads

  1. Help with A/D math!
    By dbodenheimer in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 19th March 2011, 00:51
  2. Math help please...
    By Ioannis in forum General
    Replies: 2
    Last Post: - 20th June 2008, 10:18
  3. Math Help Please
    By markcadcam in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 21st May 2008, 19:00
  4. PBPL Math...new math takes more cycles...Always?
    By skimask in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th February 2008, 10:22
  5. Math help please!!!
    By jbirnsch in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 10th August 2007, 14:45

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