I m working on some functionality in a financial application. All numbers are represented as decimals without rounding errors both in the code and in the database. However, I m having some performance problems and I m considering switching to floating point numbers (float/double) in my own computations. This is based on the assumption that rounding error isn t a problem (which I will have to check with the customer).
However, I would like to know what pitfals there are if I do this conversion. Are there a type of expression that when computed using floating point numbers may differ significantly from the same expression computed using decimals?