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

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

Virtual Methods

In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsScientificNumericFormat. See the FAQ for more details.

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)

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