Hungarian Round Numbers
A simple utility function for rounding numbers according to specific Hungarian (Ft or HUF) rounding rules at payments.
Installation
npm install @happy-gastro/hungarian-round-numbers
Usage
const hungarianRoundNumbers = require('@happy-gastro/hungarian-round-numbers');
or
import {hungarianRoundNumbers} from "@happy-gastro/hungarian-round-numbers"
console.log(hungarianRoundNumbers(130));
console.log(hungarianRoundNumbers(134));
console.log(hungarianRoundNumbers(132));
console.log(hungarianRoundNumbers(138));
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Author
This project is developed and maintained by Farkas Ferenc.
Company
Happy Gastro Ltd.
License
MIT