I am experiencing unexpected results when performing floating point arithmetic.
void main( void ) { long raw_value; float scaling_factor = 0.0762951; float scaling_offset = -1000; float result; for( raw_value = 65530; raw_value <= 65535; raw_value++ ) { result = ( raw_value * scaling_factor ) + scaling_offset; } }
View all questions in Keil forum