writting code for a 16 X 16 Table


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by CrazyCooter
    all the spots will be placed with a linear line of numbers ie 14.7,11.2,15.8 etc


    Quote Originally Posted by Acetronics
    ...
    PbP only works with INTEGERS !!!
    ....

    As Alain said, integers would be your problem but, if you can say that your linear line of numbers will never get above 25.5 then you can get around it by storing the whole number by multiplication of 10.

    And read them back by dividing by 10 (also a second division for remainder).


    ---------------



    -----------------------
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,627


    Did you find this post helpful? Yes | No

    Default

    Hi,
    What is the maximum value that you want to store in the table and how many decimals do you need/want?

    Is the table supposed to be in RAM, internal EEPROM, external EEPROM or program memory?

    As the guys said before, PBP works with integers only so you cant just store the value 14.7 but depending on the largest number you need to store there's probably a few ways around that.

    Then when you have your table, how will you access it? By row/column or....?

    /Henrik Olsson.

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    And probably going to use a standard 3 wire O2 sensor, narrowband thing.
    Not going to work...
    JDG

Similar Threads

  1. decoding quadrature encoders
    By ice in forum mel PIC BASIC Pro
    Replies: 93
    Last Post: - 28th February 2017, 09:02
  2. PC Scan Code Table
    By Melanie in forum Documentation
    Replies: 1
    Last Post: - 18th November 2009, 19:36
  3. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. Embedded Strings in your Code Space
    By mytekcontrols in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 9th March 2008, 07:50

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