Class: QgsNumericFormatContext¶
- class qgis.core.QgsNumericFormatContext¶
Bases:
sip.wrapper
A context for numeric formats
New in version 3.12.
QgsNumericFormatContext() Constructor for QgsNumericFormatContext.
The context will be populated based on the user’s current locale settings.
QgsNumericFormatContext(
QgsNumericFormatContext
)Enums
Bases:
enum.IntEnum
Methods
Returns the decimal separator character.
Returns the exponential character.
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
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.
Attributes
- class Interpretation(value)¶
Bases:
enum.IntEnum
Interpretation of numeric values.
New in version 3.26.
Generic
: GenericLatitude
: Latitude valuesLongitude
: Longitude values
- Generic = 0¶
- Latitude = 1¶
- Longitude = 2¶
- baseClass¶
alias of
QgsNumericFormatContext
- decimalSeparator(self) str ¶
Returns the decimal separator character.
See also
- Return type
str
- exponential(self) str ¶
Returns the exponential character.
See also
- Return type
str
- interpretation(self) QgsNumericFormatContext.Interpretation ¶
Returns the interpretation of the numbers being converted.
See also
New in version 3.26.
- Return type
- negativeSign(self) str ¶
Returns the negative sign character.
See also
- Return type
str
- percent(self) str ¶
Returns the percent character.
See also
- Return type
str
- positiveSign(self) str ¶
Returns the positive sign character.
See also
- Return type
str
- setDecimalSeparator(self, separator: str)¶
Returns the decimal separator character.
See also
- Parameters
separator (str) –
- setExponential(self, character: str)¶
Sets the exponential
character
.See also
- Parameters
character (str) –
- setInterpretation(self, interpretation: QgsNumericFormatContext.Interpretation)¶
Sets the
interpretation
of the numbers being converted.See also
New in version 3.26.
- Parameters
interpretation (QgsNumericFormatContext.Interpretation) –
- setNegativeSign(self, character: str)¶
Sets the negative sign
character
.See also
- Parameters
character (str) –
- setPercent(self, character: str)¶
Sets the percent
character
.See also
- Parameters
character (str) –
- setPositiveSign(self, character: str)¶
Sets the positive sign
character
.See also
- Parameters
character (str) –
- setThousandsSeparator(self, separator: str)¶
Sets the thousands
separator
character.See also
- Parameters
separator (str) –
- setZeroDigit(self, character: str)¶
Returns the zero digit
character
.See also
- Parameters
character (str) –
- staticMetaObject = <PyQt5.QtCore.QMetaObject object>¶
- thousandsSeparator(self) str ¶
Returns the thousands separator character.
See also
- Return type
str
- zeroDigit(self) str ¶
Returns the zero digit character.
See also
- Return type
str