#include <Prefix.h>
Inheritance diagram for DecimalPrefix:

Public Member Functions | |
| DecimalPrefix (int exp10, string long_name, string short_name="", string unicode_name="") | |
| int | exponent (int iexp=1) const |
| Number | exponent (const Number &nexp) const |
| void | setExponent (int iexp) |
| Number | value (const Number &nexp) const |
| Number | value (int iexp) const |
| Number | value () const |
| int | type () const |
Protected Attributes | |
| int | exp |
A metric or decimal prefix has an integer exponent which with a base of ten constitutes the value of the prefix (value=10^exponent).
|
||||||||||||||||||||
|
Create a decimal prefix.
|
|
|
Returns the exponent.
|
|
|
Returns the exponent.
|
|
|
Sets the exponent of the prefix.
|
|
|
Returns type, subclass, of the prefix. This can be PREFIX_DECIMAL for prefixes of the class DecimalPrefix, PREFIX_BINARY for BinaryPrefix, or PREFIX_NUMBER for NumberPrefix.
Implements Prefix. |
|
|
Returns the value of the prefix.
Implements Prefix. |
|
|
Returns the value of the prefix.
Implements Prefix. |
|
|
Returns the value of the prefix.
Implements Prefix. |
1.4.3