diff --git a/src/NetscriptFunctions.ts b/src/NetscriptFunctions.ts index 06f0bbb68..77cfafc5e 100644 --- a/src/NetscriptFunctions.ts +++ b/src/NetscriptFunctions.ts @@ -176,7 +176,7 @@ export const ns: InternalAPI = { return 0; // To prevent returning infinity below } - return hackAmount / Math.floor(server.moneyAvailable * percentHacked); + return hackAmount / server.moneyAvailable * percentHacked; }, hackAnalyze: (ctx) => (_hostname) => { const hostname = helpers.string(ctx, "hostname", _hostname);