Cash flow that nets multiple commodity floating leg cashflows for a given payment period. More...
Classes | |
| class | NettedCommodityCashFlow |
Functions | |
| QuantLib::Real | roundWithPrecision (QuantLib::Real value, QuantLib::Natural precision, QuantLib::Natural preRoundPrecision=8) |
| Helper function to perform precise rounding with pre-rounding to avoid floating point issues. | |
Cash flow that nets multiple commodity floating leg cashflows for a given payment period.
| QuantLib::Real roundWithPrecision | ( | QuantLib::Real | value, |
| QuantLib::Natural | precision, | ||
| QuantLib::Natural | preRoundPrecision = 8 ) |
Helper function to perform precise rounding with pre-rounding to avoid floating point issues.
| value | The value to round |
| precision | Number of decimal places for final rounding |
| preRoundPrecision | Number of decimal places for pre-rounding (default 8) |