1 Reply Latest reply on Jan 28, 2010 4:46 PM by heavensonearth

    FP eceptions on equality assignment from array value?


      Now I have an unexpected  question...CodeAnalyst is reporting FP exceptions here:

      float a[2], b;
      {math stuff to calculate b}
      a[1] = b;

      Is this because array values must be exactly 32 bits and b may be represented at higher precision due to denormalized approximations, so it is being truncated to fit into the array? Or is there another possible explanation? I'm quite confused why an equality assignment would cause a floating point exception.