mirror of https://github.com/Gnucash/gnucash
We don't use floats in GnuCash, we use doubles (and those as little as possible), but dbd-sqlite3 is broken in that it stores only floats. Simply casting floats to doubles introduces bogus additional digits that can cause round-trip tests to fail. Instead convert floats to doubles by multiplying by 10E6, rounding, then dividing by 10E6.pull/361/head
parent
3e052e8dac
commit
9db60ca63c
Loading…
Reference in new issue