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: $' format($, , show)/1 /*display balance after 1/4 century. */
/*stick a fork in it, we're all done. */</lang>
'''output''' &nbsp; when using the default inputs:
<pre>
Balance after 25 years: $0.039938729673230208900399387296732302089
</pre>