Class EnglishNumberFormatExtensions
Extension methods to spell out numbers into English.
Inspiration: https://stackoverflow.com/a/2601001
Inheritance
System.Object
EnglishNumberFormatExtensions
Namespace: Lucene.Net.Support
Assembly: Lucene.Net.Benchmark.dll
Syntax
public static class EnglishNumberFormatExtensions : object
Methods
| Improve this Doc View SourceToWords(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 |
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 |