LCDOUT help


Closed Thread
Results 1 to 2 of 2

Thread: LCDOUT help

  1. #1
    f6ggy's Avatar
    f6ggy Guest

    Default LCDOUT help

    I will want to post the result of a arithmetic operation which is 143012,5 in three variables ex F1 153 - F2 012 - F3 5 - LCDOUT dec3 f1 LCDOUT dec3 f2 LCDOUT "." LCDOUT dec1 f1 How to define the variables and calculation???????
    or second solution the result 143012.5 how to put it in variable and to post it (LCDOUT) in entirety?????
    thank you

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    If variable F1 holds 143 (the thousands), F2 holds 012 (hundreds, tens and units) and F3 holds 5 (Single Decimal) then...

    If F1>0 then
    LCDOut #F1
    If F2<100 then LCDOut "0"
    If F2<10 then LCDOut "0"
    endif
    LCDOut #F2,".",#F3

    This will ensure leasing zero's are surpressed, and appropriate zero's inserted (for example 100000.0 where F1=100, F2=0 and F3=0).

Similar Threads

  1. Timer + rc5
    By naga in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 19th November 2009, 07:56
  2. need help in coding..
    By daphne8888 in forum mel PIC BASIC
    Replies: 1
    Last Post: - 19th March 2008, 07:31
  3. Help GPS read with serin
    By leinske in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th September 2007, 02:33
  4. Crystalfontz LCD
    By jman12 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 9th February 2007, 15:04
  5. having problems with Hantronix 20x4 lcd
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd December 2005, 12:22

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