The Prefix class defines SI unit of measure prefixes as well as those found in computer science.
More...
|
|
| yotta (cls) |
| |
|
| zetta (cls) |
| |
|
| exa (cls) |
| |
|
| peta (cls) |
| |
|
| tera (cls) |
| |
|
| giga (cls) |
| |
|
| mega (cls) |
| |
|
| kilo (cls) |
| |
|
| hecto (cls) |
| |
|
| deka (cls) |
| |
|
| deci (cls) |
| |
|
| centi (cls) |
| |
|
| milli (cls) |
| |
|
| micro (cls) |
| |
|
| nano (cls) |
| |
|
| pico (cls) |
| |
|
| femto (cls) |
| |
|
| atto (cls) |
| |
|
| zepto (cls) |
| |
|
| yocto (cls) |
| |
|
| kibi (cls) |
| |
|
| mebi (cls) |
| |
|
| gibi (cls) |
| |
| | __init__ (self, name, symbol, factor) |
| | Construct a prefix.
|
| |
| | fromName (cls, name) |
| | Find the prefix with the specified name.
|
| |
| | fromFactor (cls, factor) |
| | Find the prefix with the specified scaling factor.
|
| |
|
| __str__ (self) |
| |
|
| __eq__ (self, other) |
| |
|
| __ne__ (self, other) |
| |
|
| __hash__ (self) |
| |
|
|
int | EPSILON = 1e-10 |
| |
|
list | prefixes = [] |
| |
The Prefix class defines SI unit of measure prefixes as well as those found in computer science.
◆ __init__()
| uom.prefix.Prefix.__init__ |
( |
| self, |
|
|
| name, |
|
|
| symbol, |
|
|
| factor ) |
Construct a prefix.
- Parameters
-
| name | Name |
| symbol | Symbol |
| factor | Numerical factor |
◆ fromFactor()
| uom.prefix.Prefix.fromFactor |
( |
| cls, |
|
|
| factor ) |
Find the prefix with the specified scaling factor.
- Parameters
-
- Returns
Prefix
◆ fromName()
| uom.prefix.Prefix.fromName |
( |
| cls, |
|
|
| name ) |
Find the prefix with the specified name.
- Parameters
-
- Returns
Prefix
The documentation for this class was generated from the following file: