Miss any of our Open RFC calls?Watch the recordings here! »

sadd

1.0.1 • Public • Published

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

Install

npm i sadd

DownloadsWeekly Downloads

1

Version

1.0.1

License

BSD-3-Clause

Last publish

Collaborators

  • avatar