
<snip>
* "Narrowing conversions are truncating." This is unfortunate. I'd prefer it to round according to the current rounding mode.
Chris will have to answer that one.
Yes. I agree. I would also prefer cpp_dec_float to round when converting to lesser digits or built-in types. Unfortunately, though, cpp_dec_float in its current (*well-tested*) state does not support rounding. It only rounds to nearest when creating an output string. The cpp_dec_float class uses an internal base-10 representation. This has some advantages such as providing an intuitive form allowing for ease of visualization with a debugger. There are, however, unfortunate drawbacks with a base-10 representation. In particular conversions to and from base-10 to base-2 representations are difficult to implement. Several reviewers have been disappointed with my back-end. (That's a funny sentence, isn't it?) By that I mean disappointed in the lack of rounding thereof. If Boost.Multiprecision gets accepted and if I can find a reliable, efficient way to round to nearest when performing narrowing conversions with cpp_dec_float, then I will implement this rounding. Brute force conversion to string would be the last resort, but atrociously inefficient---not my first choice. John, could you please add this to the ToDo list? <snip>
Defining a Lambda Function:
* The name of the section is misleading because "Lambda" has a totally different meaning in programming. Maybe find a different example.
Point taken, shame, it made a nice simple example :-(
The full name of the function is: Jahnke-Emden-Lambda Function. Maybe this is enough for the documentation. Alternatively, there is also the classic "sinc" function defined as sinc(x) = sin(x) / x Calculating the sinc function uses a very simple strategy: Taylor series for small arguments and straight forward evaluation for large arguments. The example would, therefore, remain terse and east to understand. I could probably come up with another pithy, witty example. I would, however, need more time to conjure up one. Best regards, Chris.