Page 1 of 1

floating point numbers incorrect

Posted: Sat Jul 13, 2013 2:10 am
by brandonb
was toying with megasqurts fuel injection rate equasion, it gives correct answer in simulation but not on chip...i have a feeling with this my numbers are to large for 32 bit floats, am i close?
FIGURING OUT MEGASQUIRT.fcf
(10 KiB) Downloaded 289 times

Re: floating point numbers incorrect[SOLVED]

Posted: Sat Jul 13, 2013 5:33 am
by brandonb
got it figured out, it was the way i wrote the equasions, i simplified them and whah lah it works
this works.fcf
(10 KiB) Downloaded 335 times