NumericFormat Class

NumericFormat are used to format common numeric types in text.
Inheritance Hierarchy
SystemObject
  Aspose.GisNumericFormat

Namespace:  Aspose.Gis
Assembly:  Aspose.GIS (in Aspose.GIS.dll) Version: 20.3.0.0 (20.03)
Syntax
public abstract class NumericFormat

The NumericFormat type exposes the following members.

Constructors
  NameDescription
Protected methodNumericFormat
Create an instance.
Properties
  NameDescription
Public propertyStatic memberRoundTrip
Converts and attempts to ensure that a numeric value that is converted to a string is parsed back into the same numeric value.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodStatic memberFlat
Converts a number to a fixed-point text without a scientific notation.
Public methodStatic memberGeneral
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.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Remarks
There are three types of NumericFormat:
  • General - fixed-point or scientific notation. Some number of digits are significant.
  • RoundTrip - fixed-point or scientific notation. Max of digits are significant.
  • Flat - fixed-point notation. Some number of digits are significant.
A NumericFormat can be set to IGeometry via AsText in order to specify the numeric format when translating geometry to its Well-Known Text (WKT) representation.
See Also