Changes between Initial Version and Version 1 of Ticket #4856, comment 1


Ignore:
Timestamp:
Feb 19, 2021, 9:59:38 AM (3 years ago)
Author:
mdavis

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4856, comment 1

    initial v1  
    1 This is not a bug, it is actually expected behaviour.  The reason is because the floating point representation used internally for numbers is not able to precisely represent certain decimal numbers (even apparently simple ones like 2.6).  The usual term for this is "roundoff error".
     1This is not a bug, it is actually expected behaviour.  The reason is because the floating point representation used internally for numbers is not able to precisely represent certain decimal numbers.  This can happed for even apparently simple numbers like 2.6 - internally this is represented as 2.6000000000000000888178419700125.  The usual term for this is "roundoff error".
    22
    33Simplifying the example makes this more clear: