Help for this page
value|precision sprintf Incognito Albannach jeffa '123.45678'|3: 123.457 123.456 123.456 123 '12.4'|1: 12.4 12.4 12.4 12 ... '3.'|0: 3 3 3 3 '1000'|5: 1000.00000 1000.00000 1000.00000 01000 '12.56'|0: 13 12 12 12
use strict; #use warnings; # sprintf doesn't like nulls as values ... return $str if $add < 1; return ('0' x $add) . $str . $right; }