sadd
v1.0.1
Published
Performs the addition of two numbers represented as strings, and returns the result represented as string
Downloads
14
Readme
sadd
Performs the addition of two numbers represented as strings, and returns the result represented as string.
Useful when either number you must sum is bigger than the maximum integer that can be exactly represented and
correctly compared. See Number.MAX_SAFE_INTEGER
at MDN for an explanation.
API
var sadd = require('sadd');
sadd(str1, str2)
Returns the string representation of the sum of the numbers represented by str1
and str2
.
sadd('123', '456');
//--> '579'
License
Copyright (c) Claudio Procida 2015