Method on @infsup: sprintf (template, X)

Convert interval X under the control of a template string template to a string with interval literals.

See help intervaltotext for the syntax of the template string.

sprintf ("The result lies within the box %[4g].\n", infsup (2, 3))
  ⇒ ans = The result lies within the box [   2,    3].

See also: intervaltotext, @infsup/printf, @infsup/fprintf.

Package: interval