I\'m still having big problems with BigDecimal (the trail of tears started here, and continued to here so far.
Now I\'ve got the opposite problem - going from BigDec
I use the SQLite Integer type and convert like so:
BigDecimal bd = new BigDecimal("1234.5678");
int packedInt = bd.scaleByPowerOfTen(4).intValue(); // packedInt now = 12345678
Now save packedInt to SQLite Integer field.
To go back to BigDecimal:
BigDecimal bd = new BigDecimal(packedInt); // bd = 12345678
bd = bd.scaleByPowerOfTen(-4); // now bd = 1234.5678