Read array in sequence, and convert it's contents into single variable?


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: Read array in sequence, and convert it's contents into single variable?

    How do you want to work with it afterwards? did you want to process it as decimal 1101 or binary 1101 or just "string" 1101?

  2. #2
    Join Date
    Feb 2013
    Posts
    1,150


    Did you find this post helpful? Yes | No

    Default Re: Read array in sequence, and convert it's contents into single variable?

    I want to convert it to decimal and use in that way.

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: Read array in sequence, and convert it's contents into single variable?

    Sorry, I'm confused on this. You want to take each nibble and convert it to a decimal value, or???

  4. #4
    Join Date
    Feb 2013
    Posts
    1,150


    Did you find this post helpful? Yes | No

    Default Re: Read array in sequence, and convert it's contents into single variable?

    No, imagine array consists of "1" "0" "1" "1" digits, I want to "merge" them into one binary variable, which I will convert to decimal later.

  5. #5
    Join Date
    May 2013
    Location
    australia
    Posts
    2,670


    Did you find this post helpful? Yes | No

    Default Re: Read array in sequence, and convert it's contents into single variable?

    so where is the problem ?
    what have you tried ?
    Warning I'm not a teacher

Similar Threads

  1. Lookup with variable contents??
    By elcrcp in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th June 2015, 09:21
  2. Read/write a single bit (MCP23018)
    By vladimir059@hot in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 28th June 2011, 04:11
  3. Saving variable(s) contents before power is removed
    By emavil in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 15th July 2007, 17:26
  4. How do I convert an internal variable into frequency
    By schlaray in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 13th February 2007, 07:26
  5. Convert a word variable to decimal
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 4th December 2004, 20:02

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