https://github.com/softcircuits/numbertotext
Converts a number to text. For example, converts 123.45 to "One hundred twenty-three and 45/100".
https://github.com/softcircuits/numbertotext
check-writing number-format number-formatter number-to-words
Last synced: about 1 year ago
JSON representation
Converts a number to text. For example, converts 123.45 to "One hundred twenty-three and 45/100".
- Host: GitHub
- URL: https://github.com/softcircuits/numbertotext
- Owner: SoftCircuits
- License: mit
- Created: 2019-07-08T00:21:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-14T05:10:26.000Z (over 3 years ago)
- Last Synced: 2025-04-17T06:56:12.196Z (about 1 year ago)
- Topics: check-writing, number-format, number-formatter, number-to-words
- Language: C#
- Size: 20.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License.txt
Awesome Lists containing this project
README
# NumberToText
[](https://www.nuget.org/packages/SoftCircuits.NumberToText/)
```
Install-Package SoftCircuits.NumberToText
```
## IMPORTANT
**This repository has been deprecated. Please use SoftCircuits.Wordify instead.**
## Overview
Converts a number to text. For example, the library would convert `123.45` to `"One hundred twenty-three and 45/100"`. Useful for check printing or other cases where you want to display a number as text.
## Example
```cs
NumberToText converter = new NumberToText();
string s = converter.Transform(123.45);
```
Note that negative numbers are converted to positive numbers before transforming. Therefore, `123.45` would product the same result for as for `-123.45`. Depending on how you want negative numbers handled, you could prefix the result with `"Minus"` or something to that effect when the value is a negative number.
## Additional Information
For additional information, check the [Converting Numbers to Words](http://www.blackbeltcoder.com/Articles/strings/converting-numbers-to-words) article on Black Belt Coder.