bitburner-src/markdown/bitburner.ns.sprintf.md

34 lines
604 B
Markdown
Raw Normal View History

2021-10-30 18:34:14 +02:00
<!-- 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; [sprintf](./bitburner.ns.sprintf.md)
## NS.sprintf() method
Format a string.
2021-10-30 18:34:14 +02:00
<b>Signature:</b>
```typescript
2022-01-12 13:51:21 +01:00
sprintf(format: string, ...args: any[]): string;
2021-10-30 18:34:14 +02:00
```
## Parameters
2022-01-16 00:39:37 +01:00
| Parameter | Type | Description |
| --- | --- | --- |
| format | string | String to format. |
| args | any\[\] | Formating arguments. |
2021-10-30 18:34:14 +02:00
<b>Returns:</b>
string
Formated text.
## Remarks
2021-10-30 21:46:34 +02:00
RAM cost: 0 GB
2021-10-30 18:34:14 +02:00
see: https://github.com/alexei/sprintf.js
2022-01-16 00:39:37 +01:00