Skip to content

Commit

Permalink
Update AroTable.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Aro1914 committed Aug 5, 2022
1 parent 1f5b068 commit d78ac18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AroTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export default class AroTable {
this.#enforceRemoveAll(numbers[i]);
}
if (Array.isArray(number)) {
const numLength = numbers.length;
const numLength = number.length;
let i = 0;
for (i; i < numLength; i++)
this.#enforceRemoveAll(number[i]);
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ The AroTable constructor works like an overloaded constructor, it could be givin
The maximum number of decimal places for numbers stored in the AroTable is **3**, e.g. _1.234, 3.345, -23434.334, -0.646_.

- Any value that exceeds this amount of decimal places would trigger an immediate approximation to 3 decimal places, e.g _12.3455345_ -> _12.346_, the original form of the value would be irretrievable and the newly approximated value stored in its place.
- In the earlier example, running a lossless [search](#the-search-method) for _12.3455345_ would result in _false_ being returned, rather a lossy [search](#the-search-method) for its integer portion - _12_, would return the range of its occurrences.
- In the earlier example, running a [lossless search](#the-search-method) for _12.3455345_ would result in _false_ being returned, rather a [lossy search](#the-search-method) for its integer portion - _12_, would return the range of its occurrences.
- In the event one attempts to insert values like _4.999999_ and _-12.999999_, they will both be rounded to _5_ and _-13_ respectively.

## Methods
Expand Down

0 comments on commit d78ac18

Please sign in to comment.