• 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; ...
  • 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; ...
  • Floating point arithmetic - accuracy problem
    Hello, I am using 89C51ED2 for solving non-linear equations. I am facing accuracy problems while doing floating point arithmetic. The accuracy of floating point arithmetic is limited to 3 decimal...
  • Floating point arithmetic - accuracy problem
    Hello, I am using 89C51ED2 for solving non-linear equations. I am facing accuracy problems while doing floating point arithmetic. The accuracy of floating point arithmetic is limited to 3 decimal...
  • typecast
    To the best of my knowledge the 'if' below should test 2 bytes. What is wrong here void funct(unsigned char *valptr) { if (((unsigned int)*valptr) != 0) generates 0012 8F82 MOV DPL,R7 0014 8E83...