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
- rtype
QgsNumericFormat
- param context
- param configuration
- param value
- rtype
str
Sets the format’s
configuration
.Sets the maximum number of decimal
places
to show.- rtype
int
- rtype
str
-
clone
(self) → QgsNumericFormat¶ - Return type
-
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
configuration (Dict[str) –
context (QgsReadWriteContext) –
- Return type
-
formatDouble
(self, value: float, context: QgsNumericFormatContext) → str¶ - Parameters
value (float) –
context (QgsNumericFormatContext) –
- 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