- Joined
- Jan 17, 2004
ok anyone who has viewed my other question threads will know this will be a challenge cause my terminology is limited and well basically my experience period is very limited.
ok in my program i have figured out how to use DecimalFormat to get required results for output of decimla places.
my instructor provides an output screen to code to when in doubt. (his instructions are kinda limited and strict as he expects you to read the book and catch on like there is no problem)
Problem - when i use different values from the pic provided the decimal points dont line up .
example:
when i get an output of exact values provided i get this
now if i enter smaller values i get something like this
is there a way to always have decimal points align no matter the length of number ?
ok in my program i have figured out how to use DecimalFormat to get required results for output of decimla places.
my instructor provides an output screen to code to when in doubt. (his instructions are kinda limited and strict as he expects you to read the book and catch on like there is no problem)
Problem - when i use different values from the pic provided the decimal points dont line up .
example:
when i get an output of exact values provided i get this
HTML:
Management Summary:
Number of Loans 2
Total Loans $ 521,600.01
Interest Earnings 27,723.35
Average Interest Rate 9.473%
now if i enter smaller values i get something like this
HTML:
Management Summary:
Number of Loans 2
Total Loans $ 21,600.01
Interest Earnings 27,723.35
Average Interest Rate 5.47%
is there a way to always have decimal points align no matter the length of number ?