pbp and signed variables


Closed Thread
Results 1 to 2 of 2
  1. #1

    Question pbp and signed variables

    Hi anyone.
    1-How I can use signed numbers in PIC Basic Pro?
    Suppose that we have this expression:
    A=(B*C)+(D*E)-(F*G)
    that A,B,C,D,E,F and G are Signed Variables and their type is word.
    I use PIC16F877 in my project.
    Please explain me exactly because it is very important for me.
    Thank you very much.



    2-I want to use floating point variables in my project.
    For example I want to input (-0.5) from keyboard and put it to A
    variable (var word) and calculate this expression:
    B=0.2*A
    I use PIC16F877 and my compiler is PIC Basic Pro

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Lightbulb

    Have a look at the main Picbasic site !!!

    www.melabs.com

    there's much more than you expect ...

    Alain

Similar Threads

  1. Changing Swordfish code to PBP
    By Ron Marcus in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 29th April 2008, 01:28
  2. Math Operations on pbp
    By Jannia04 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th May 2007, 15:33

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