Search Results for

    Show / Hide Table of Contents

    Class OrdinateFormat

    Formats numeric values for ordinates in a consistent, accurate way.

    The format has the following characteristics:
    Inheritance
    object
    OrdinateFormat
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.IO
    Assembly: NetTopologySuite.dll
    Syntax
    public class OrdinateFormat

    Constructors

    | Edit this page View Source

    OrdinateFormat()

    Creates an OrdinateFormat using the default maximum number of fraction digits.

    Declaration
    public OrdinateFormat()
    | Edit this page View Source

    OrdinateFormat(int)

    Creates an OrdinateFormat using the given maximum number of fraction digits.

    Declaration
    public OrdinateFormat(int maximumFractionDigits)
    Parameters
    Type Name Description
    int maximumFractionDigits

    The maximum number of fraction digits to output

    Fields

    | Edit this page View Source

    Default

    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

    | Edit this page View Source

    Format(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

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX