NumericFormat Class

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

NameTypeAccessDescription
round_trip [static]NumericFormatrConverts and attempts to ensure that a numeric value that is converted to
a string is parsed back into the same numeric value.

Methods

NameDescription
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:

ParameterTypeDescription
significant_digitsintNumber of significant digits. The maximum available precision is “308”

Returns

TypeDescription
NumericFormatThe 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:

ParameterTypeDescription
precisionintThe 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

TypeDescription
NumericFormatThe General Format Specifier.