float-arth

1.0.1 • Public • Published

float-art

A beautiful method to perform float arithemtics

Installation

$npm install float-arth

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);
//perform multiplicatiin and addition operation
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

Package Sidebar

Install

npm i float-arth

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

2.57 kB

Total Files

3

Last publish

Collaborators

  • chidimel