@ksaj @praetor You can always type ]ratmode decimal which will print all rationals in decimal form.
A closing square bracket is the prefix for system commands.
As it happens, my implementation will assume that any negative year to be zero (by virtue of the 0⌈n expression which returns the greatest of 0 and n). The same is not done for months, so negative months will yield weird results. Then again, passing in a complex number will also yield strange results.
I approached the problem as just writing a mathematical equation, and just like any equation they have a domain of applicability.
In maths, the assertion that input confirms to a given domain is in the text of the paper, not the formula itself, which maps to your example by the statement that the format is "(dogs-age years months)".
Adding explicit checks for this makes the code less clear, I think. If this was part of an actual product, then the requirements are of course very different.
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.