work on doc

This commit is contained in:
Olivier Gagnon
2021-10-30 12:34:14 -04:00
parent f99c3fd0cd
commit 43fc5dfd48
589 changed files with 63720 additions and 1168 deletions
@@ -0,0 +1,39 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [NS](./bitburner.ns.md) &gt; [hackAnalyzePercent](./bitburner.ns.hackanalyzepercent.md)
## NS.hackAnalyzePercent() method
Returns the percentage of the specified servers money you will steal with a single hack. This value is returned in percentage form, not decimal (Netscript functions typically return in decimal form, but not this one).
<b>Signature:</b>
```typescript
hackAnalyzePercent(host: Host): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| host | [Host](./bitburner.host.md) | Hostname or IP of the target server. |
<b>Returns:</b>
number
The percentage of money you will steal from the target server with a single hack.
## Remarks
1 GB
## Example
```js
//For example, assume the following returns 1:
hackAnalyzePercent("foodnstuff");
//This means that if hack the foodnstuff server, then you will steal 1% of its total money. If you hack using N threads, then you will steal N% of its total money.
```