We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello
I am trying to execute a floating point calculation with the 8051. Something like:
Result = Val1 * 0.75 + Val2 * 0.25
The C51 compiler can take that no problem, but it takes a long time to execute, would anyone know a smarter and faster way to execute this kind of code.
Thanks a lot. Laurent
"you only need one floating point operation to divide it by 100."
You almost certainly don't even need that - just remember that your answer is in units of centi-whatevers!
See the last few posts in this Thread: http://www.keil.com/forum/docs/thread8278.asp