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