Fixed bugs with new HelperFunctions

This commit is contained in:
danielyxie
2018-07-10 00:11:18 -05:00
parent 79a489d7a9
commit dcd6292ed2
9 changed files with 112847 additions and 101398 deletions
+1 -2
View File
@@ -3,7 +3,6 @@
* @param decimal A decimal value to trim to two places.
*/
export function roundToTwo(decimal: number) {
const leftShift: number = Math.round(parseInt(`${decimal}e+2`, 10));
const leftShift: number = Math.round(parseFloat(`${decimal}e+2`));
return +(`${leftShift}e-2`);
}