Yes, he clearly should have taken into account any possible subunit denomination, including exotic native tribe money units like sea shells, because international programmers reading HN are not expected to think of that of their own.
I only mention it because the yen thing surprised me once as a newbie programmer. (A tip: "%0.2f" is no substitute for actual i18n.) It never hurts to be aware of the edge cases.
I'm afraid it mine can only handle sea shells!
>I only mention it because the yen thing surprised me once as a newbie programmer.
So what's the yen thing? How does it differ?
[A bit of googling also turns up the "rin" (厘), which is a thousandth of a yen...]