Hi to all,
I am new to this forum..If i did any thing wrong in this thread please correct me...
Let me tell you something about my project ....
I am working on ARM7-LPC2148 processor with Graphical LCD. Now i am making a calculator which should be like as our PC calculator...
I did in a normal way this calculations that means
The steps involved in my calculator are...
1. Taking input numbers as strings
2. converting them to float values by using atof() function which is having a
limitation to return floating value.
3. Doing all calculations in a normal way by using operators
egg: if(operator=='+')
result = a+b;
if(operator=='-')
result = a-b;
if(operator=='*')
result = a*b;
if(operator=='/')
result = a/b;
4. Then converting that result (floating value) to string format and then printing it on
GLCD screen.
By using double, long long unsigned int..data types i can store limited values and i
am unable to get the exact values ...and i am unable to do the big big calculations.
That's why i have chosen a path to calculate these type things by using Bit
manipulation method ...
i can do addition and subtraction by doing bit manipulations.But for multiplication and division i dont have the idea how our PC doing that much big calculations and giving accurate values...
Please help in this regard...