Split decimal digits


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Posts
    37


    Did you find this post helpful? Yes | No

    Default

    wait, does it mean PBP will make word always 5 digit and byte 3 digit? hm I newer seen it in my book
    Last edited by therian; - 9th January 2007 at 00:26.

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


    Did you find this post helpful? Yes | No

    Default

    Hi,
    I don't really follow you here....
    A word is always 16bits (0-65535) so yes, 5 digits. Digits "not used" will return a 0 when used with the DIG operator. If you are using the DIG operator for display purposes and don't want to display the zeros you need to use a check routine like in Sayzer's example.

    /Henrik Olsson.

  3. #3
    Join Date
    Jan 2007
    Posts
    37


    Did you find this post helpful? Yes | No

    Default

    I just wanted to build couple 7 led displays so I was thinking about how to measure how many digits in the number to send each number to led display

Similar Threads

  1. DS1820 display with 7-seg 4 digits
    By chai98a in forum Code Examples
    Replies: 12
    Last Post: - 10th April 2008, 13:12
  2. Time display on 7-seg 4 digits
    By chai98a in forum Code Examples
    Replies: 12
    Last Post: - 5th March 2007, 07:24
  3. hex ascii help please
    By ffr58kk90 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 29th December 2006, 21:09
  4. 16bit variable and degrees conversion
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 2nd May 2005, 17:27
  5. Decimal to binary conversion
    By Demon in forum Code Examples
    Replies: 9
    Last Post: - 25th February 2005, 20:05

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