Skip to content
Discussion options

You must be logged in to vote

Hi nandoconde!

I would suggest two changes:

  1. Since @sprintf is resolved into a string already, the Print() call around it can be removed
  2. Replace the single quotes of the markdown string with triple quotes

These two changes ended up producing the desired result for me.

md"""This is my variable with limited decimals: $(@sprintf "%5.4f" BigFloat("6.666666666666666"))"""

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nandoconde
Comment options

Answer selected by nandoconde
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants