I've never seen anyone use floating point for money in their bespoke applications
But if you are not an expert, you better stick to BigDecimal and absorb the performance costs.
> final double residual = df - ldf + Math.ulp(d) * (factor * 0.983);
(And some of our back-end systems then did ludicrous broken wrong-headed rounding to turn them into fictional currency values... Ho hum.)
That was maybe 15 years ago - hopefully they've fired that programmer and fixed it in the meantime. We don't know, because we don't use QuickBooks any more.