Skip to content

About

Functions for doing mathematical operations on numbers saved as strings

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

40 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stringMaths

Table of Content

Aims

  • 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

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages