You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create functions in javascript to perform mathematical operations on numbers saved as strings. The motivation of this is to expand the range of numbers that can be saved and manipulated beyond what is possible with standard datatypes.
Investigate writing the algorithms in C++ and utilising them in javascript and any efficiency benefits
Possibly look at creating a module from the resulting functions
Technologies
Javascript
Mocha + chai module
C++
Tasks
In Progress
Create new datatype
Modify code to be contained in Class/classes
Extend code to function with decimal inputs
Completed
Test and write function for positive integer addition
Test and modify code for negative integer addition
Multiple approaches have been tried in the pursuit of increasing efficiency though steps have not been taken at this point to quantify improvements
Refactor on branch Restructure, additionally remove trailing zeros at beginning of sum function in the aim of improving efficiency. The edge case of an ans of -0 has also been dealt with though it has not been tested for.
About
Functions for doing mathematical operations on numbers saved as strings