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: Ken Hornstein
Subject: Re: [Nmh-workers] mh-format multiply function
Date: Fri, 09 Jan 2015 13:14:47 -0500

>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)

I think that's what you want?  Not super elegant because you have to repeat
the %(rclock{date}) twice.

--Ken



reply via email to

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