fa
float-art
npm i float-art
fa

float-art

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

by emma_chid

1.0.0 (see all)License:MITTypeScript:Not Found
npm i float-art
Readme

float-art

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-art 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-art informations

lets dive into a simple examples/test_art.js

var number = require('float-art');
// 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

Downloads/wk

0

GitHub Stars

1

LAST COMMIT

NaNyrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
1.0.0
latest
2mos ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate