does PicBasic do that?


Closed Thread
Results 1 to 10 of 10

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    If you read the PBP Manual you will discover it only handles INTEGERS.

    If you have a BYTE, your numbering is 8 bits from 0-255 (NO DECIMAL PLACES)...

    If you have a WORD, your numbering is 16 bits 0-65535 (NO DECIMAL PLACES)...

    If you lave a LONG etc etc the rest is in your documentation.

    Theis does not mean you can't do Floating Point Math, but it means you have to stay within the limitations of the variables that you are using. If you want two decimal places precision example 12.34 then you must store it as 1234 and insert the Decimal Point accordingly when you need to Display or Print your variable.

  2. #2
    Join Date
    Jan 2009
    Location
    Ankara,TURKEY
    Posts
    45


    Did you find this post helpful? Yes | No

    Default

    thanks Melanie I did it as you said
    Electrical & Electronic Engineering
    Undergraduate Student

Similar Threads

  1. How to configure SPI in PICBASIC PRO?
    By moogle in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 15th April 2007, 18:31
  2. Picbasic VS C Compiler
    By koossa in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 11th October 2005, 21:44
  3. Replies: 22
    Last Post: - 12th July 2005, 17:39
  4. PicBasic Fundamentals
    By Billyc in forum General
    Replies: 9
    Last Post: - 4th May 2004, 10:04
  5. PicBasic Pro & PicBasic syntax different
    By Billyc in forum General
    Replies: 5
    Last Post: - 16th April 2004, 21:19

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