Class: QgsNumericFormatContext¶
A context for numeric formats.
Added in version 3.12.
Enums
Interpretation of numeric values. |
Methods
Returns the decimal separator character. |
|
Returns the exponential character. |
|
Returns the expression context to use when evaluating |
|
Returns the interpretation of the numbers being converted. |
|
Returns the negative sign character. |
|
Returns the percent character. |
|
Returns the positive sign character. |
|
Returns the decimal separator character. |
|
Sets the exponential character. |
|
Sets the expression context to use when evaluating |
|
Sets the interpretation of the numbers being converted. |
|
Sets the negative sign character. |
|
Sets the percent character. |
|
Sets the positive sign character. |
|
Sets the thousands separator character. |
|
Returns the zero digit character. |
|
Returns the thousands separator character. |
|
Returns the zero digit character. |
- class qgis.core.QgsNumericFormatContext[source]¶
Bases:
object
- __init__()
Constructor for QgsNumericFormatContext.
The context will be populated based on the user’s current locale settings.
- __init__(a0: QgsNumericFormatContext)
- Parameters:
- class Interpretation(*values)¶
Bases:
IntEnum
Interpretation of numeric values.
Added in version 3.26.
Generic
: GenericLatitude
: Latitude valuesLongitude
: Longitude values
- Generic = 0¶
- Latitude = 1¶
- Longitude = 2¶
- decimalSeparator(self) str [source]¶
Returns the decimal separator character.
See also
- Return type:
str
- expressionContext(self) QgsExpressionContext [source]¶
Returns the expression context to use when evaluating
QgsExpressions
.See also
Added in version 3.40.
- Return type:
- interpretation(self) QgsNumericFormatContext.Interpretation [source]¶
Returns the interpretation of the numbers being converted.
See also
Added in version 3.26.
- Return type:
- setDecimalSeparator(self, separator: str)[source]¶
Returns the decimal separator character.
See also
- Parameters:
separator (str)
- setExponential(self, character: str)[source]¶
Sets the exponential
character
.See also
- Parameters:
character (str)
- setExpressionContext(self, context: QgsExpressionContext)[source]¶
Sets the expression
context
to use when evaluatingQgsExpressions
.See also
Added in version 3.40.
- Parameters:
context (QgsExpressionContext)
- setInterpretation(self, interpretation: QgsNumericFormatContext.Interpretation)[source]¶
Sets the
interpretation
of the numbers being converted.See also
Added in version 3.26.
- Parameters:
interpretation (QgsNumericFormatContext.Interpretation)
- setNegativeSign(self, character: str)[source]¶
Sets the negative sign
character
.See also
- Parameters:
character (str)
- setPercent(self, character: str)[source]¶
Sets the percent
character
.See also
- Parameters:
character (str)
- setPositiveSign(self, character: str)[source]¶
Sets the positive sign
character
.See also
- Parameters:
character (str)
- setThousandsSeparator(self, separator: str)[source]¶
Sets the thousands
separator
character.See also
- Parameters:
separator (str)
- setZeroDigit(self, character: str)[source]¶
Returns the zero digit
character
.See also
- Parameters:
character (str)
- thousandsSeparator(self) str [source]¶
Returns the thousands separator character.
See also
- Return type:
str