Class: QgsScientificNumericFormat

class qgis.core.QgsScientificNumericFormat

Bases: QgsBasicNumericFormat

Default constructor

QgsScientificNumericFormat(QgsScientificNumericFormat)

A numeric formatter which returns a scientific notation representation of a value.

Methods

clone

rtype

QgsNumericFormat

configuration

param context

create

param configuration

formatDouble

param value

id

rtype

str

setConfiguration

setNumberDecimalPlaces

Sets the maximum number of decimal places to show.

sortKey

rtype

int

visibleName

rtype

str

clone(self)QgsNumericFormat
Return type

QgsNumericFormat

configuration(self, context: QgsReadWriteContext) → Dict[str, Any]
Parameters

context (QgsReadWriteContext) –

Return type

Dict[str, Any]

create(self, configuration: Dict[str, Any], context: QgsReadWriteContext)QgsNumericFormat
Parameters
Return type

QgsNumericFormat

formatDouble(self, value: float, context: QgsNumericFormatContext) → str
Parameters
Return type

str

id(self) → str
Return type

str

setConfiguration()
setNumberDecimalPlaces(self, places: int)

Sets the maximum number of decimal places to show.

The places argument must be at least 1.

See also

numberDecimalPlaces()

See also

setShowTrailingZeros()

Parameters

places (int) –

sortKey(self) → int
Return type

int

visibleName(self) → str
Return type

str