Python Forum

Full Version: quest for better float formatting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
my main goal is printing out a sequence of float (or decimal) numbers is to be sure the decimal point is lined up among many lines of output. but i also want to specify how many characters of space to use, the minimum number of digits for the whole part and the minimum number of digits for the fraction part. if i implement something it would have arguments of the value to print, the size an the two minimum digits. even then, the decimal point won't always line up.