NumericFormat Class
Contents
[
Hide
]Summary: NumericFormat are used to format common numeric types in text.
Module: aspose.gis
Full Name: aspose.gis.NumericFormat
Aspose.PSD Version: 25.9.0
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| round_trip [static] | NumericFormat | r | Converts and attempts to ensure that a numeric value that is converted to a string is parsed back into the same numeric value. |
Methods
| Name | Description |
|---|---|
| flat(significant_digits) | Converts a number to a fixed-point text without a scientific notation. |
| general(precision) | Converts a number to the more compact of either fixed-point or scientific notation, depending on the type of the number and whether a precision specifier is present. Recommended to use. |
Method: flat(significant_digits) [static]
flat(significant_digits)
Converts a number to a fixed-point text without a scientific notation.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| significant_digits | int | Number of significant digits. The maximum available precision is “308” |
Returns
| Type | Description |
|---|---|
| NumericFormat | The Rounding Precision Specifier. |
Method: general(precision) [static]
general(precision)
Converts a number to the more compact of either fixed-point or scientific notation,
depending on the type of the number and whether a precision specifier is present. Recommended to use.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| precision | int | The precision defines the maximum number of significant digits that can appear in the result string. If the precision is zero, the value “15” is used. The maximum available precision is “17”. |
Returns
| Type | Description |
|---|---|
| NumericFormat | The General Format Specifier. |