nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: norm
Subject: Re: [Nmh-workers] mh-format multiply function
Date: Fri, 09 Jan 2015 10:35:41 -0800

Ken Hornstein <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]