Page 1 of 1
calculator
Posted: Mon Jan 18, 2010 7:29 pm
by attia
After I finished the draft of the calculator i am trying to apply to the Protus as the simulation flowcode was excellent without any problems either on the protus given strange characters instead of results from the calculation on lcd
where is the problem
i think the problem in floattostring function
please help me AS SOON AS POSSIBLE I AM FRUSTRATED
note:
on MY keypad
A="."
B=+
C=-
D=X
E=/
F= "="
my project
http://depositfiles.com/files/4e89px08l
Re: calculator
Posted: Thu Jan 21, 2010 5:25 pm
by Benj
Hello
I think I know what the problem is.
The BoostC PIC compiler uses functions to control the floating point mathematics. The HITECH PIC compiler does not.
Therefore you can either
A) convert your code to use the floating point functions.
A example of the BOOSTC required code.
q = hussin-z
would become
q = fsub(hussin, z)
The BoostC float functions can be found in the Functions window of the Calculation icon.
or B) change your compiler settings to use the HITECH compiler.
Details of the HITECH compiler can be found in the Articles section of the forum.
Re: calculator
Posted: Thu Jan 21, 2010 6:32 pm
by attia
thank you very much
now protus simulator working well after your advice to change function to fsub,fadd,fmul,fdiv
i am very happy to learn from you
now i can say flowcode is the first,flowcode for ever
Re: calculator
Posted: Fri Jan 22, 2010 1:02 pm
by Benj
Brilliant glad you got it working correctly

thanks for letting us know