@happy-gastro/hungarian-round-numbers

1.6.0 • Public • Published

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.

Company

Happy Gastro Ltd.

License

MIT

/@happy-gastro/hungarian-round-numbers/

    Package Sidebar

    Install

    npm i @happy-gastro/hungarian-round-numbers

    Weekly Downloads

    2

    Version

    1.6.0

    License

    ISC

    Unpacked Size

    4.77 kB

    Total Files

    7

    Last publish

    Collaborators

    • fbalazs
    • fecnysmith