Abstract class defining the concept of relative quantified amounts'. For relative quantities,
the +' and -' operators are defined (unlike descendants of DV_ABSOLUTE_QUANTITY,
such as the date/time types).
Declaration :
Directly inherited by : DV_COUNT DV_DURATION DV_PROPORTION DV_QUANTITY DV_TEMPORAL
Artifact : DV_AMOUNT
Attribut accuracy |
Accuracy of measurement, expressed either
as a half-range percent value
(accuracy_is_percent = True) or a half-range
quantity. A value of 0 means that accuracy
was not recorded.
Declaration :
Attribut accuracy_is_percent |
If True, indicates that when this object was
created, accuracy was recorded as a percent
value
Declaration :
Operation valid_percentage |
Test whether a number is a valid percentage,
i.e. between 0 and 100.
Declaration :
Operation operator= |
Declaration :
Operation operator+ |
Sum of this quantity and another whose formal type must be the
difference type of this quantity.
Declaration :
Operation operator- |
Negated version of current object, such as used for representing a
difference, e.g. a weight loss.
Declaration :
All public operations : is_normal , is_simple , is_strictly_comparable_to , operator+ , operator- , operator< , operator= , valid_magnitude_status , valid_percentage