chickadee » fmt » num/fit

num/fit <width> <n> #!rest <ARGS>procedure

Like num, but if the result doesn't fit in <width>, output instead a string of hashes (with the current <precision>) rather than showing an incorrectly truncated number. For example

(fmt #f (fix 2 (num/fit 4 12.345))) => "#.##"