2021-11-04 01:19:52 +01:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [HackingFormulas](./bitburner.hackingformulas.md) > [growPercent](./bitburner.hackingformulas.growpercent.md)
|
|
|
|
|
|
|
|
## HackingFormulas.growPercent() method
|
|
|
|
|
2022-03-17 21:50:46 +01:00
|
|
|
Calculate the percent a server would grow to. (Ex: 3.0 would would grow the server to 300% of its current value.)
|
2021-12-09 01:19:07 +01:00
|
|
|
|
2021-11-04 01:19:52 +01:00
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
2021-12-09 01:19:07 +01:00
|
|
|
growPercent(server: Server, threads: number, player: Player, cores?: number): number;
|
2021-11-04 01:19:52 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2021-12-09 01:19:07 +01:00
|
|
|
| server | [Server](./bitburner.server.md) | Server info from [getServer](./bitburner.ns.getserver.md) |
|
|
|
|
| threads | number | Amount of thread. |
|
|
|
|
| player | [Player](./bitburner.player.md) | Player info from [getPlayer](./bitburner.ns.getplayer.md) |
|
|
|
|
| cores | number | Number of cores on the computer that will execute grow. |
|
2021-11-04 01:19:52 +01:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
number
|
|
|
|
|
2021-12-09 01:19:07 +01:00
|
|
|
The calculated grow percent.
|
|
|
|
|