I’m Embarrassed!
October 4, 2016
Matthew Arcus pointed out a bug in my solution to the previous problem:
> (dollar 1234567.9999) $1,234,567.100
I can’t remember a similarly bad bug in any previous Programming Praxis problem.
You get the day off today. There is no exercise for you to do. You are welcome to read or run my corrected solution, or to post your own solution or discuss the exercise in the comments below.
Updated my python solution so it rounds instead of truncating.
Sorry about that. I find it’s easy to get these simple problems wrong, just by not paying enough attention. New solution looks good anyway.