Class: QgsNumericFormatContext

class qgis.core.QgsNumericFormatContext

Bases: sip.wrapper

A context for numeric formats

Added in version 3.12.

QgsNumericFormatContext() Constructor for QgsNumericFormatContext.

The context will be populated based on the user’s current locale settings.

QgsNumericFormatContext(a0: QgsNumericFormatContext)

Enums

Interpretation

Bases: enum.IntEnum

Methods

decimalSeparator

Returns the decimal separator character.

exponential

Returns the exponential character.

interpretation

Returns the interpretation of the numbers being converted.

negativeSign

Returns the negative sign character.

percent

Returns the percent character.

positiveSign

Returns the positive sign character.

setDecimalSeparator

Returns the decimal separator character.

setExponential

Sets the exponential character.

setInterpretation

Sets the interpretation of the numbers being converted.

setNegativeSign

Sets the negative sign character.

setPercent

Sets the percent character.

setPositiveSign

Sets the positive sign character.

setThousandsSeparator

Sets the thousands separator character.

setZeroDigit

Returns the zero digit character.

thousandsSeparator

Returns the thousands separator character.

zeroDigit

Returns the zero digit character.

Attributes

staticMetaObject

class Interpretation(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: enum.IntEnum

Interpretation of numeric values.

Added in version 3.26.

  • Generic: Generic

  • Latitude: Latitude values

  • Longitude: Longitude values

Generic = 0
Latitude = 1
Longitude = 2
baseClass

alias of QgsNumericFormatContext

decimalSeparator(self) str

Returns the decimal separator character.

Return type:

str

exponential(self) str

Returns the exponential character.

See also

setExponential()

Return type:

str

interpretation(self) QgsNumericFormatContext.Interpretation

Returns the interpretation of the numbers being converted.

Added in version 3.26.

Return type:

QgsNumericFormatContext.Interpretation

negativeSign(self) str

Returns the negative sign character.

Return type:

str

percent(self) str

Returns the percent character.

See also

setPercent()

Return type:

str

positiveSign(self) str

Returns the positive sign character.

Return type:

str

setDecimalSeparator(self, separator: str)

Returns the decimal separator character.

Parameters:

separator (str)

setExponential(self, character: str)

Sets the exponential character.

See also

exponential()

Parameters:

character (str)

setInterpretation(self, interpretation: QgsNumericFormatContext.Interpretation)

Sets the interpretation of the numbers being converted.

See also

interpretation()

Added in version 3.26.

Parameters:

interpretation (QgsNumericFormatContext.Interpretation)

setNegativeSign(self, character: str)

Sets the negative sign character.

See also

negativeSign()

Parameters:

character (str)

setPercent(self, character: str)

Sets the percent character.

See also

percent()

Parameters:

character (str)

setPositiveSign(self, character: str)

Sets the positive sign character.

See also

positiveSign()

Parameters:

character (str)

setThousandsSeparator(self, separator: str)

Sets the thousands separator character.

Parameters:

separator (str)

setZeroDigit(self, character: str)

Returns the zero digit character.

See also

zeroDigit()

Parameters:

character (str)

staticMetaObject = <PyQt5.QtCore.QMetaObject object>
thousandsSeparator(self) str

Returns the thousands separator character.

Return type:

str

zeroDigit(self) str

Returns the zero digit character.

See also

setZeroDigit()

Return type:

str