Showing numbers in diffrent ways?


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2005
    Posts
    49

    Talking Showing numbers in diffrent ways?

    I want to show numbers on LCD different format but i don't know how
    my problem is for exmpl.
    i have number 1889 how can ı show this number on lcd like 1.889 how can i format this like that?In Visual basic programming there was a command like #,### something like that after than number becomes automaticly 1.889 in PBP can we do that?Or something like that?
    Asking is not a shame but not learning is a SHAME!!!

  2. #2
    Join Date
    Mar 2005
    Location
    Iowa, USA
    Posts
    216


    Did you find this post helpful? Yes | No

    Default

    Look at the DIG math operator and DEC modifier for LCDOUT.
    Example from one of Bruce's posts:
    Code:
    LCDOUT DEC ADval DIG 3,".",DEC3 ADval ' 1.889
    DIG returns a specified digit from a decimal number. (0-4, position 0 is would be "9" in this case and position 3 would be "1"

Similar Threads

  1. Replies: 4
    Last Post: - 15th April 2009, 02:54
  2. Working with 3 byte numbers
    By Josuetas in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th July 2007, 23:59
  3. Splitting numbers and recombining them(EEPROM Error)
    By selbstdual in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd June 2007, 07:40
  4. Numbers
    By jcleaver in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 7th April 2007, 19:32
  5. Returning whole numbers for DS1820?
    By jessey in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 12th February 2007, 13:15

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