Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@happy-gastro/hungarian-round-numbers

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@happy-gastro/hungarian-round-numbers

Round hungarian cash payments up or down depends on amount

  • 1.6.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-40%
Maintainers
2
Weekly downloads
 
Created
Source

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: ferenc.farkas@happygastro.hu
  • Website: www.happygastro.hu

Company

Happy Gastro Ltd.

License

MIT

Keywords

FAQs

Package last updated on 16 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc