in reply to A format to "print" to variable?

try sprintf

-Enlil