EuCarlos / humanize-numbers-java

Number humanization algorithm for Brazilian scale

Home Page:https://carlosalves.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Humanize Number with Java

🌐 Para a versão em português deste README, clique aqui.

Number humanization algorithm for Brazilian scale inspired by @BetoFrega/humaniza-numeros
Logo Swagger UI Logo TypeScript GitHub top language GitHub release (latest by date)

Summary

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:

  1. Fork the project
  2. Create a new branch: git checkout -b nova-branch
  3. Commit your changes: git commit -m 'I added something'
  4. Push to branch: git push origin nova-branch
  5. 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 💜 by Carlos Alves

About

Number humanization algorithm for Brazilian scale

https://carlosalves.vercel.app/


Languages

Language:Java 100.0%