Skip to content

allow float to perform arithmetical operation of multiplication and addition without returning multiple decimals.

License

Notifications You must be signed in to change notification settings

Emmanuelmelvin/float-arth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

float-arth

A beautiful method to perform float arithemtics It allow float to perform arithmetical operation of multiplication and addition without returning multiple decimals.

Installation

$npm install float-art

Features

  • returns accurate solution for float multiplication
  • returns accurate solution for float addition
  • can perform for both float and numbers without limitations

Usage

The float-arth is very easy to use. It has two core methods of basic arithmetics : number.multiply() and number.add (). These methods takes float and number expressions as arguments in the functions.

Getting basic float-arth informations

lets dive into a simple examples/test_art.js

var number = require('float-arth');
// number can be any variable

var ans = number.multiply(0.2 , 0.1 , 0.91);
var num = number.add(0.2 , 0.1 , 0.91);
console.log(num);
console.log(ans);

This will be the result following command-line output:

$ node examples/test_art.js
0.0182
1.21

About

allow float to perform arithmetical operation of multiplication and addition without returning multiple decimals.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published