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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -35,7 +35,8 @@ function roundToDecimalPlaces(value, decimalPlaces = 1) {
// Step 3: Shift the decimal point back by dividing with the same factor
constunshiftedValue=(roundedValue/factor);
// Step 4: Re-round the value with an additional buffering step to precent floating point rounding errors in previous step
// Step 4: Re-round the value with an additional buffering step to prevent floating point rounding errors in previous step
// eg. 8.6 - 7.15 will return 1.4499999999999993 rather than 1.45. When this misrepresented, floating-point difference is rounded to one decimal place, this will produce 1.4 which is not correct