You can try Printf.Format, see example here., or use a helper function as here.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Vectorized sprintf | 1 | 580 | June 13, 2019 | |
| Compiled sprintf? | 3 | 933 | April 28, 2018 | |
| Printf with variable format string | 14 | 9157 | May 22, 2023 | |
| Using a variable to format printf not allowed? | 9 | 1025 | May 23, 2023 | |
| How to use @sprintf with "parametric" format string? | 5 | 1045 | April 1, 2024 |