next up previous contents
Next: Exact string Search Up: Printing Previous: printf

sprintf

The sprintf command is identical to the printf command except that instead of sending the result of evaluating the text pattern to the terminal, it returns it as a name.
sprintf( textpattern, $exp_{1}, exp_{2}, \ldots$)
The %a can not be included as a conversion pattern in textpattern.
> res := sprintf('%s %d.', 'ACCAGACCATG', 11);
res := ACCAGACCATG 11.



Gaston Gonnet
1998-09-15