Hello
Thanks
I am just trying to understand the work around format in PIC to work with floating point values, the systems I normally program have floating point at part of there normal stucture.
I though from the orignal post that all you needed to do is use fractions in your formula and it would work but it does not seem to be so.
For example If I needed to multiply some varriable by .234 or any decimal value to get an answer, how would this be done?
In my case I am takeing a analog voltage and turning in into a tempature that is displayed on a screen.
The temperature result does not need to be floating point
But if I can not use floating point numbers to scale correctly the value could be off by 5+- degrees pretty quickly
The true formula is
result=adc10((adc10*.00034)+.2235) 'where adc10 in the pic 10 analog register
To be within 1% of the true tempature
Thanks
Bookmarks