Show / Hide Table of Contents

    Class EnglishNumberFormatExtensions

    Extension methods to spell out numbers into English.

    Inspiration: https://stackoverflow.com/a/2601001

    Inheritance
    System.Object
    EnglishNumberFormatExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.Benchmark.dll
    Syntax
    public static class EnglishNumberFormatExtensions

    Methods

    | Improve this Doc View Source

    ToWords(Int32)

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

    Declaration
    public static string ToWords(this int value)
    Parameters
    Type Name Description
    System.Int32 value
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ToWords(Int64)

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

    Declaration
    public static string ToWords(this long value)
    Parameters
    Type Name Description
    System.Int64 value
    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)