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)

Methods

decimalSeparator

Returns the decimal separator character.

exponential

Returns the exponential character.

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.

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.

decimalSeparator(self)str

Returns the decimal separator character.

Return type

str

exponential(self)str

Returns the exponential character.

See also

setExponential()

Return type

str

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) –

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) –

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