Forum Discussion

robertallen2405's avatar
robertallen2405
Copper Contributor
Sep 20, 2024
Solved

Adding two numbers in a select query produces a slightly different number.

In a select query, the Field contains 'Total Net (inc Manual): [Manually Input Amount]+[Net Amount]'.  In one example, it should produce 20.6, but it produces 20.6000003814697. Both values do not c...
  • Karl_Donaubauer's avatar
    Sep 20, 2024

    Hi,

     

    Since you didn't reveal the data type of [Net Amount] in the underlying table, I can only guess that it is Single. If that's the case: This is the least useful and most inaccurate data type in the world. 😉 Change it to Double at the very least, or better yet, to Currency.

     

    Servus
    Karl
    ****************

    Access Forever News DevCon
    Access-Entwickler-Konferenz AEK - 19./20.10. Nürnberg

Resources