1.0.1 • Published 8 years ago

sadd v1.0.1

Weekly downloads
2
License
BSD-3-Clause
Repository
-
Last release
8 years ago

Build Status

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

BSD 3-Clause

Copyright (c) Claudio Procida 2015