Page MenuHomePhabricator

When rounding quantity margins, never round to zero.
Closed, ResolvedPublic

Description

When rounding quantity margins (and perhaps also the actual amount of the quantity), we should never round to 0. 0 Margins indicate an exact value. That is a special case - showing "almost zero" as 0 (or hiding the mergin) would be misleading.

E.g.:

When rounding 2+/-0.016 to 1 digit after the decimal point (exp -1),
we currently get 2+/-0, indicating an exact value.
we should however get 2+/-0.02, ignoring the indicated rounding level and instead
rounding to the most significant non-zero digit.


Version: unspecified
Severity: normal
Whiteboard: quantityvalue, u=dev c=backend p=0

Details

Reference
bz56892