difference expression # DEC


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2005
    Posts
    32

    Default difference expression # DEC

    Hi!

    Do you know how to point out me the differences among the two expressions?

    expression1 LCDOUT $FE,$C=,"ANNO",# var1

    expression2 LCDOUT $FE,$C=,"ANNO",DEC var1

    on the display the same writing always appears

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    # and DEC are the same when written as is. BUT DEC allow to display the amount of number you want in fix format. Set your variable to 256, then use DEC1, DEC2, DEC3 and see what's happen.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Getting SERIN2 to work?
    By BobPigford in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 22nd July 2009, 20:10
  2. LCDout $FE,2, dec Days - What is dec ?
    By merc07 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 24th June 2009, 04:03
  3. Replies: 0
    Last Post: - 19th August 2008, 21:20
  4. Replies: 5
    Last Post: - 28th May 2008, 10:20
  5. 12F675: DEC modifier not accepted
    By jswayze in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 1st September 2005, 02:39

Members who have read this thread : 1

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