• Floating Point
    How I can deny a number floating point, without using some mathematical operation (eg. :number * (-1)). ?? How can I take the first 8 bits of the number???
  • floating point
    Hi every body I don't know why I don't have the float part of the temp var. float temp; int H_Value; int L_Value; int value = 55; temp = value / 10; H_Value = (int)temp; L_Value = (int)(temp...
  • Floating point behavior
    When using the number 0.9999...9999 in my code I get unpredictable behavior. Yet when I substitute 1.0 for this number everything behaves. Is there some limit I am violating?
  • Floating point bug !
    float f; unsigned long l; f=10000 * 9999.99; // result f=9.99999e+007 l=f; // result l=99999904 !!
  • Problem with floating point operation
    Please, help me to solve the problem: <source code> bit Result; float Density; Density = 0.55; if(( Density < 0.54999995) { Result = 0; } else { Result = 1; } While after running...