Print interval X under the control of a template string
template to the stream stdout
and return the number of
characters printed.
See help intervaltotext
for the syntax of the template string.
printf ("The result lies within the box %[4g].\n", infsup (2, 3)) ⇒ The result lies within the box [ 2, 3].
When X is a vector, matrix, or array of intervals, this function cycles through the format template until all the values have been printed.
printf ("%5:[g] %5:[g]\n", infsup (pascal (2))) ⇒ [ 1 ] [ 1 ] [ 1 ] [ 2 ]
See also: intervaltotext, @infsup/fprintf, @infsup/sprintf.
Package: interval