Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The sprintf() operator can be applied to either a number or a string. The operator takes a formatting string as its sole argument. The formatting string follows the conventions for sprintf() established in other languages. Specifically, the KRL version of sprintf() follows the formatting conventions for Perl.3 For  For example:

Code Block
themeConfluence
languagejavascript
a = 10
c = a.sprintf("< %d>") // c = "< 10>"

...