Boost logo

Boost :

From: Gabriel Dos Reis (Gabriel.Dos-Reis_at_[hidden])
Date: 2001-05-21 09:31:31


John Max Skaller <skaller_at_[hidden]> writes:

| Beman Dawes wrote:
| >
| > Daniel Frey wrote:
| >
| > >In finance there is another, sometimes important way of rounding: On a
| > >tie, round so that the last digit is even. To illustrate that:
| >
| > Gabriel Dos Reis wrote:
| >
| > > I think the ability of choosing rounding mode should not be
| > > overlooked. It is an essential part of LIA-1 and later standards.
| >
| > I'm convinced.
| >
| > So a question is do you support that by having a whole bunch of different
| > functions, or by the class template taking some kind of a parameter
| > (perhaps a traits or policy class) performing the rounding desired?
|
| Rounding is a property of the operation,
| NOT the operands.

Untrue. Rounding is primarily a property of the *operands*, and to
some extent a property of the operation.

-- Gaby


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk