nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] mh-format multiply function

2015-01-09 12:35:53
Ken Hornstein <kenh@pobox.com> writes:
Given given an integer (in this case rclock{date}) how do I divide it by
another integer (in this case 86400==24*60*60) displaying the result,
including 2 places to the right of the decimal point.

Divide by 864?  Well, that gets you part of the way there.  There's not
really a formatted "printf" equivalent.  Probably something like ...

%(void(rclock{date}))%(divide 86400).%(void(rclock{date}))%(void(divide 864))\
%02(modulo 100)

Yes, that's exatly what I want. Thank you.

Programming in mh-format is like programing a stack language with a
stack one deep.

    Norman Shapiro

_______________________________________________
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>