Boost logo

Boost :

From: Gabriel Dos Reis (Gabriel.Dos-Reis_at_[hidden])
Date: 2001-05-15 10:29:46

Beman Dawes <bdawes_at_[hidden]> writes:

| > This is problematic. For some operations, it is
| >wrong to always round 1/2 LSD up: when doing statistical
| >operations, rounding up or down at random is correct.
| >Sometimes, truncation is correct (rather than rounding).
| >
| > This suggests that you pick one mode (as you have)
| >for the operator?? forms, but supply the other operations
| >as named functions, for example
| >
| > mul_with_truncate(a,b)
| > mul_with_rhlsd_up(a,b)
| > mul_with_rhlsd_ran(a,b)
| > mul_with_noround(a,b)
| Maybe. But maybe just stick with one form of rounding, unless there really
| is some overwhelming need for additional forms.

Hi Beman,

I think the ability of choosing rounding mode should not be
overlooked. It is an essential part of LIA-1 and later standards.

-- Gaby

Boost list run by bdawes at, gregod at, cpdaniel at, john at