@joeish80829: Please do yourself a favour and learn how to use code tags (Outputting code or fixed width data), you probably will get more and better answers if you're not posting such a mess like your post above. Nobody wants to read unformatted source code. Thank you.

Here is an example of a CL-OPENCV floating-point matrix pretty-printer. The code is a bit antique, maybe somebody with better FORMAT-foo than me can improve it. See CLHS 22.3.3 FORMAT Floating-Point Printers for the related floating-point FORMAT directives.

:digits n is the number of digits after the dot and :pad n is the number of horizontal space characters between the matrix elements.

Please note that the vertical alignment only works correctly with fixed-width fonts (with proportional fonts it will probably be a mess) and the print-matrix function doesn't test any of its arguments, so with wrong or nonsensical arguments it will probably end up in the debugger.

Assuming that the alien array can only be accessed one element at a time and reading 22.3.3.2 Tilde E: Exponential Floating-Point several times again I found that if the exponent is formatted to a constant width of three digits the print-matrix function can be shortened to: