Class: QgsScientificNumericFormat

class qgis.core.QgsScientificNumericFormat

Bases: QgsBasicNumericFormat

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

New in version 3.12.

QgsScientificNumericFormat() Default constructor

QgsScientificNumericFormat(QgsScientificNumericFormat)

Methods

clone

rtype:

QgsNumericFormat

configuration

param context:

create

param configuration:

formatDouble

param value:

id

rtype:

str

setConfiguration

Sets the format's configuration.

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(self, configuration: Dict[str, Any], context: QgsReadWriteContext)

Sets the format’s configuration.

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