Class: QgsScientificNumericFormat

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

Added in version 3.12.

Class Hierarchy

Inheritance diagram of qgis.core.QgsScientificNumericFormat

Base classes

QgsBasicNumericFormat

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

QgsNumericFormat

A numeric formatter allows for formatting a numeric value for display, using a variety of different formatting techniques (e.g. as scientific notation, currency values, percentage values, etc)

Methods

setNumberDecimalPlaces

Sets the maximum number of decimal places to show.

class qgis.core.QgsScientificNumericFormat[source]

Bases: QgsBasicNumericFormat

__init__()

Default constructor

__init__(a0: QgsScientificNumericFormat)
Parameters:

a0 (QgsScientificNumericFormat)

setNumberDecimalPlaces(self, places: int)[source]

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)