Quote Originally Posted by paul borgmeier View Post
Unfortunately, I have never used FP with a PIC - I have been lucky enough to always get by with Fixed Point Math (for the "hard" math). I know some things are better solved with FP but would be curious to know what you are trying to do?
Quite frankly:

AFR x 6.17 x 454 x .621371 x VSS
--------------------------------
3600 x ( MAF / 100 )

I know most of it can be combined ahead of time, and that's what I'll do obviously.
AFR will be one of 2 values (maybe more), 12.5 or 14.7
6.17 = average density of gasoline in lbs/gallong
454 = grams in 1 pound
.621371 = miles in 1 kilometer
VSS - byte value for speed in kph
MAF - word value for mass air flow grams/second
3600 & 100 - time and decimal point unit conversions

Any guesses as to what I'm building?