- allow formating of val=12345 with fp_digits=6 as 0.012345 - use assert instead of explicit if - remove unused pwr function