idx-round
Version:
Stock price rounding library for IDX (Indonesia) stock market
26 lines (13 loc) • 476 B
Markdown
IDX Round
=========
A small library to round stock price according to IDX price fraction
## Installation
`npm install idx-round`
## Usage
var round = require('idx-round');
var rounded = round(5019.2);
Output should be `5025`
## Tests
`npm test`
## Contributing
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.