PDA

View Full Version : pbp and signed variables



yasser hassani
- 1st June 2004, 21:23
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

Acetronics2
- 2nd June 2004, 10:07
Have a look at the main Picbasic site !!!

www.melabs.com

there's much more than you expect ...

Alain