Forum : 8051
Original Post
Post Information | Post |
---|---|
August 2, 2007 - 7:04pm
|
In RC51, a particular constant FP division evaluates incorrectly (unsigned char)(1.0/0.5) evaluates to 2 (OK) but (unsigned char)(2.0/0.5) evaluates to 1 (Wrong, should be 4) continuing... (unsigned char)(4.0) -> 4 (OK) So, there's a very particular error for 2.0/0.5. What's happening? Are there any other odd errors of this type? My RC51 is 3.03.42 with the patch for the array access error in May (see my forum post a few entries back) regards Steven Pruzina |
Hi Steven,
thank you for reporting this very specific bug. It has been fixed.
regards,
Lionel