Trying to use a format specifier to print a float that will be less than 1 without the leading zero. I came up with a bit of a hack but I assume there is a way to just drop
One viable option which works without regex and with negative numbers greater than 10
k = -.1337 ("%.4f" % k).replace("-0","-").lstrip("0")