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