Replies: 2 comments
|
This is intended behavior. The reason it works this way is because the macro does parse-time validation of the formatting string. Use |
0 replies
|
Hello, The Functional Solution: Printf.Format and Printf.format Julia a = [1, 2, 3, 4, 5, 6] 1. Create a format objectfmt = Printf.Format(af) 2. Use the format function (not the macro)resultado = Printf.format(fmt, a...) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
In working with
@sprintfthe formatting string must be a string within the quotes within the macro call. It cannot be a String variable or a function that compiles to a string.What I tried is
Is there any way to get something like a string variable to work in
@sprintf?All reactions