2021-10-30 18:34:14 +02:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [sprintf](./bitburner.ns.sprintf.md)
|
|
|
|
|
|
|
|
## NS.sprintf() method
|
|
|
|
|
2021-11-03 23:16:10 +01:00
|
|
|
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-12 13:51:21 +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
|
|
|
|
2021-11-03 23:16:10 +01:00
|
|
|
see: https://github.com/alexei/sprintf.js
|