On Sun, Feb 4, 2024 at 1:09 PM Bart Schaefer <schaefer@brasslantern.com> wrote:

Historically, I expect this results from lack in the base "sh" of
user-defined math functions.

Also perhaps to replicate the behavior of /bin/expr, though that's iffy-er.