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 |
Beta Was this translation helpful? Give feedback.
-
|
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...) |
Beta Was this translation helpful? Give feedback.
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?Beta Was this translation helpful? Give feedback.
All reactions