Skip to content

properly round hungarian currency in javascript | (forint kerekítése, javascript)

Notifications You must be signed in to change notification settings

sumia01/js-forint-kerekites

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

#js-forint-kerekites

This small script helps you to properly round hungarian currency when you have to use it for real money transactions :) It works with positive and negative numbers. It's not a big deal, but you might save some time with it...

##EXAMPLE

  • forintKerekites(2.2); //0

  • forintKerekites(2.5); //5

  • forintKerekites(7); //5

  • forintKerekites(7.5); //10

  • forintKerekites(-2.5); //-5

  • forintKerekites(-7); //-5

  • forintKerekites(-7.5); //-10

About

properly round hungarian currency in javascript | (forint kerekítése, javascript)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published