Humanize Number with Java
Number humanization algorithm for Brazilian scale inspired by @BetoFrega/humaniza-numeros
Summary
- 1. Installation:
- 2. Run the project
- 3. How to contribute to this project?
- 4. How do I report a bug or request a feature?
1. Installation:
Clone the repo:
git clone https://github.com/EuCarlos/humanize-numbers-java.git \
&& cd humanize-numbers-java
2. Run the project
Run the project by starting the App class found at br.com.carlos.hn
in the \src
directory and the tests in the \tests
directory
2.1 Como usar
HumanizeNumbers<Number> hn = new HumanizeNumbers("pt"); // "pt", "en"
String result = hn.execute(11234567, 2);
System.out.println(result); // 11,23 Milhões
3. How to contribute to this project?
Before starting, check and follow the instructions for contributing to the repository. If not, you can follow the instructions below:
- Fork the project
- Create a new branch: git checkout -b nova-branch
- Commit your changes: git commit -m 'I added something'
- Push to branch: git push origin nova-branch
- Open a Pull Request
4. How do I report a bug or request a feature?
If you want to report a bug or request a feature, go to Issue on the GitHub Project and add your request.
Created with