• Floating Point Arithmetic Bug?
    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; ...
  • Typecasting and float arithmetic
    Hi. I am using the evaluation version of the Keil compiler for the 8051 microcontrollers. I need to define pointers to data of double precision and single precision IEE 754 floating point format. I need...
  • Timer accuracy
    Hello, I configured a timer to generate a signal every 1 ms. See below my code about the timer: TIM_DeInit(TIMx); // TIM1 Deinitialization * TIM_InitStructure.TIM_Mode = TIM_OCM_CHANNEL_1; TIM_InitStructure...
  • FLAOTING POINT PROBLEMS
    HELLO ALL, I have a problem with a floating point number. How can 12.11 become in 2142.11000000000013 (I look in debug). I refer in this case too. I know floating point is a big problem for...
  • Floating point calculation problem..
    Hello I'm using u-vision5 and my target H/W is TLE9834 I can't understand why my code can't be build void filter(U16 RPM) { float omega; omega = (float)RPM; } Yeh. it was OK. but....