0.1.14 • Published 6 years ago

lastdecimal v0.1.14

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Last Decimal

A small library that increase or decrease the last decimal
https://www.npmjs.com/package/lastdecimal

Installation

npm install lastdecimal
yarn add lastdecimal

Usage

lastdecimal(value: number, bool: boolean)


value: Any number with decimals

0.4211 = OK!
5152.31290 = OK!
123 = NOT OK!


bool: true / false

true= increase last decimal with 1
false= decrease last decimal with 1


Examples

var lastdecimal = require("lastdecimal")


var numUp = lastdecimal.lastdecimal(555.555, true);
var numDown = lastdecimal.lastdecimal(555.555, false);

console.log(numUp); // Should return 555.556
console.log(numDown); // Should return 555.554

Todo

Setup automated build with Travis
Analyse code-coverage with Codecov
Add badges to your readme with Shields. Everyone loves badges 😎

Tests

npm test

Contributing

Create PR with description

Author

Mathias
Mateusz
@
INGRID Ventures

0.1.14

6 years ago

0.1.13

6 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago