+archi
Easy math with decimals for Javascript
Install
Using npm
npm install archi
Using bower
bower install archi
Native simple Javascript sum
01 + 02; // 0.30000000000000004;03 - 01; // 0.19999999999999998;
Solving the issue with archi
var archi = ;var num = +archi ; // 0.3num === 03; // true
+
ahead?
But, why the Do this to do a fast conversion from the ArchiNumber
instance to the native Number
type.
Methods
.plus(num)
: current num + other num.minus(num)
: current num - other num.mod(num)
: current num % other num
License
MIT