Class: QgsCurrencyNumericFormat¶
A numeric formatter which returns a text representation of a currency value.
Added in version 3.12.
Class Hierarchy¶
Base classes¶
A numeric formatter which returns a simple text representation of a value. |
|
Abstract base class for numeric formatters, which allow for formatting a numeric value for display. |
Methods
Returns the currency prefix, e.g. "$". |
|
Sets the currency prefix, e.g. "$". |
|
Sets the currency suffix, e.g. "AUD". |
|
Returns the currency suffix, e.g. "AUD". |
- class qgis.core.QgsCurrencyNumericFormat[source]¶
Bases:
QgsBasicNumericFormat
- __init__()
Default constructor
- __init__(a0: QgsCurrencyNumericFormat)
- Parameters:
- setPrefix(self, prefix: str | None)[source]¶
Sets the currency
prefix
, e.g. “$”.See also
- Parameters:
prefix (Optional[str])
- setSuffix(self, suffix: str | None)[source]¶
Sets the currency
suffix
, e.g. “AUD”.See also
- Parameters:
suffix (Optional[str])