Pathological floating point problems: Difference between revisions
Content deleted Content added
m added indentation in the task's preamble. |
m →The Chaotic Bank Society: added currency symbol to the output (balance), normalized the output number. |
||
Line 545:
end /*n*/
/*display SHOW digits past the dec. pt.*/
say 'Balance after 25 years: $'
/*stick a fork in it, we're all done. */</lang>
'''output''' when using the default inputs:
<pre>
Balance after 25 years: $0.
</pre>
|