Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class EnglishNumberFormatExtensions

    Extension methods to spell out numbers into English.

    Inspiration: https://stackoverflow.com/a/2601001
    Inheritance
    object
    EnglishNumberFormatExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.Benchmark.dll
    Syntax
    public static class EnglishNumberFormatExtensions

    Methods

    ToWords(int)

    Returns the spelled-out English words for the provided value.

    Declaration
    public static string ToWords(this int value)
    Parameters
    Type Name Description
    int value
    Returns
    Type Description
    string

    ToWords(long)

    Returns the spelled-out English words for the provided value.

    Declaration
    public static string ToWords(this long value)
    Parameters
    Type Name Description
    long value
    Returns
    Type Description
    string
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.