A small struct representing a denomination of US currency.
More...
|
| def | currency_list (bitmap) |
| | Generate a list of accepted denominations from all possible US denominations. More...
|
| |
|
|
| key |
| |
|
| value |
| | < The keyboard key that triggers inserting this Currency #
|
| |
A small struct representing a denomination of US currency.
◆ __init__()
| def Vendotron.Currency.__init__ |
( |
|
self, |
|
|
|
key, |
|
|
|
value |
|
) |
| |
Create a Currency object.
- Parameters
-
| key | The keyboard key to trigger inserting one of these (must be a string that describes a key name) |
| value | The value of the currency in USD (must be a float) |
◆ currency_list()
| def Vendotron.Currency.currency_list |
( |
|
bitmap | ) |
|
|
static |
Generate a list of accepted denominations from all possible US denominations.
- Parameters
-
| bitmap | A bitmap (int) where high bits indicate selection of the denomination in lexical order |
- Returns
- A list of currency objects, sorted in ascending order by value
The documentation for this class was generated from the following file: