Class: QgsPercentageNumericFormat

A numeric formatter which returns a text representation of a percentage value.

Added in version 3.12.

Class Hierarchy

Inheritance diagram of qgis.core.QgsPercentageNumericFormat

Base classes

QgsBasicNumericFormat

A numeric formatter which returns a simple text representation of a value.

QgsNumericFormat

Abstract base class for numeric formatters, which allow for formatting a numeric value for display.

Methods

inputValues

Returns the format of the incoming values.

setInputValues

Sets the format of the incoming values.

Attributes

ValuesAreFractions

ValuesArePercentage

class qgis.core.QgsPercentageNumericFormat[source]

Bases: QgsBasicNumericFormat

__init__()

Default constructor

__init__(a0: QgsPercentageNumericFormat)
Parameters:

a0 (QgsPercentageNumericFormat)

class InputValues

Bases: int

ValuesAreFractions = 1
ValuesArePercentage = 0
inputValues(self) QgsPercentageNumericFormat.InputValues[source]

Returns the format of the incoming values.

See also

setInputValues()

Return type:

QgsPercentageNumericFormat.InputValues

setInputValues(self, format: QgsPercentageNumericFormat.InputValues)[source]

Sets the format of the incoming values.

See also

inputValues()

Parameters:

format (QgsPercentageNumericFormat.InputValues)