String interpolation (included): Difference between revisions
→{{header|langur}}
(PascalABC.NET) |
Langurmonkey (talk | contribs) |
||
Line 1,452:
All interpolations in langur use double curly braces.
<syntaxhighlight lang="langur">val
writeln "Mary had a {{
Modifiers follow the interpolated value with a colon.
<syntaxhighlight lang="langur">writeln "Lamb count: {{
Modifiers may be chained within a single interpolation.
<syntaxhighlight lang="langur">writeln "Partial lamb count: {{
# rounds to 2 decimal places, then aligns to 10 code points
# (hopefully no partial lambs)
|