[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
- [Nmh-workers] mh-format multiply function, norm, 2015/01/09
- Re: [Nmh-workers] mh-format multiply function, norm, 2015/01/09
- Re: [Nmh-workers] mh-format multiply function, Jerrad Pierce, 2015/01/09
- Re: [Nmh-workers] mh-format multiply function, Ken Hornstein, 2015/01/09
- Re: [Nmh-workers] mh-format multiply function, norm, 2015/01/09
- Re: [Nmh-workers] mh-format multiply function, David Levine, 2015/01/10
- Re: [Nmh-workers] mh-format multiply function, norm, 2015/01/11
- Re: [Nmh-workers] mh-format multiply function, David Levine, 2015/01/11
- Re: [Nmh-workers] mh-format multiply function, norm, 2015/01/11