Class OrdinateFormat
Formats numeric values for ordinates in a consistent, accurate way.
The format has the following characteristics:
Inherited Members
Namespace: NetTopologySuite.IO
Assembly: NetTopologySuite.dll
Syntax
public class OrdinateFormat
Constructors
| Improve this Doc View SourceOrdinateFormat()
Creates an OrdinateFormat using the default maximum number of fraction digits.
Declaration
public OrdinateFormat()
OrdinateFormat(Int32)
Creates an OrdinateFormat using the given maximum number of fraction digits.
Declaration
public OrdinateFormat(int maximumFractionDigits)
Parameters
Type | Name | Description |
---|---|---|
Int32 | maximumFractionDigits | The maximum number of fraction digits to output |
Fields
| Improve this Doc View SourceDefault
The default formatter using the maximum number of digits in the fraction portion of a number.
Declaration
public static OrdinateFormat Default
Field Value
Type | Description |
---|---|
OrdinateFormat |
Methods
| Improve this Doc View SourceFormat(Double)
Returns a string representation of the given ordinate numeric value.
Declaration
public string Format(double ord)
Parameters
Type | Name | Description |
---|---|---|
Double | ord | The ordinate value |
Returns
Type | Description |
---|---|
String | The formatted number string |