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.  | 
|
A numeric formatter allows for formatting a numeric value for display, using a variety of different formatting techniques (e.g. as scientific notation, currency values, percentage values, etc)  | 
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])