Skip to content

This is javascript library for decimal type. Released under MIT licence

Notifications You must be signed in to change notification settings

icoxfog417/simple_decimal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Decimal for JavaScript

The type sDec is simple decimal class for javascript. it lets you do the following:

var value = new sDec(0.3).div(0.1) + 0; //in float , 0.3 / 0.1 = 2.9999999999999996
console.log(value); // 3

var value = new sDec(0.1).plus(0.3).minus(0.2).multi(4).div(10) + 0; // by +0 -> to number
console.log(value); // 0.08

About

This is javascript library for decimal type. Released under MIT licence

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published