@happy-gastro/hungarian-round-numbers
v1.6.0
Published
Round hungarian cash payments up or down depends on amount
Downloads
34
Maintainers
Readme
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)); // Output: 130
console.log(hungarianRoundNumbers(134)); // Output: 135
console.log(hungarianRoundNumbers(132)); // Output: 130
console.log(hungarianRoundNumbers(138)); // Output: 140
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.
- Name: Farkas Ferenc
- Email: [email protected]
- Website: www.happygastro.hu
Company
Happy Gastro Ltd.