Thanks Snippsat
I think my problems formatting is due to how python reads numbers written to a file.
If I write integers or floating point numbers to a file, and then read them back, are they ALL strings?
If so, I gather that I must either (1) treat them as strings (like using ('$' + xyz), or (2) convert them somehow back to integers/floating point numbers before trying to print them using your example above?
Is this correct?
one last question. is there a way to add a comma (for thousands separator) to this format line?
I think my problems formatting is due to how python reads numbers written to a file.
If I write integers or floating point numbers to a file, and then read them back, are they ALL strings?
If so, I gather that I must either (1) treat them as strings (like using ('$' + xyz), or (2) convert them somehow back to integers/floating point numbers before trying to print them using your example above?
Is this correct?
one last question. is there a way to add a comma (for thousands separator) to this format line?
'{}'.format('$' + begintaxableequity).rjust(12, ' ')