mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 01:32:55 +02:00
Fixed bugs with new HelperFunctions
This commit is contained in:
@@ -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`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user