Re: [Bell Historians] Re: £ - s - d.

Peter Trotman ptrotman at vdp2ls_w6nmjsVtjuMydt1b5WdbZwQxvVSvhg7ZC8li099LhKMLr3Tpj7UqcJKawTtiqaQ4FRg-LlTyZ.yahoo.invalid
Wed May 21 13:28:00 BST 2008


In case it's of any help here's a JavaScript fragment to convert lbs to
cwt-qrs-lbs:

        function lbsToCwtQrsLbs(wtlbs){
            var lbs = wtlbs % 28;            // remainder # lbs after
removing qrs from total
            var wtqrs = (wtlbs - lbs)/28;    // total is now 'wtqrs' qrs
plus 'lbs' lbs
            var qrs = wtqrs % 4;            // remainder # qrs after
removing cwt from 'wtqrs'
            var cwt = (wtqrs - qrs)/4;        // total is now 'cwt'x 112 +
'qrs'x 28 + 'lbs'
            if ((lbs==0)&&(qrs==0)){return cwt+'cwt';}
            return cwt+'-'+qrs+'-'+lbs;
        }

Peter Trotman

On 5/21/08, Mike Chester <mike at PtuFESMoryZ8zueVdo6diyxsdFRZWGAoTRQMuNMICkBn5N63E62afQFKVToUmvvlGXwKWcR331nxqB7lGNc07egfwxIasQ.yahoo.invalid> wrote:
>
>   --- In bellhistorians at yahoogroups.com <bellhistorians%40yahoogroups.com>,
> "Alan Buswell" <aaj.buswell at ...>
> wrote:
> > Does anyone have a formula whereby one can add/subtract Tons -
> > hundredweight - quarters - pounds suitable for computer use? I'm not
> > well up in these matters.
> >
> > Alan B.
> >
>
> Depending on how many you might want to do you might use this site?.
>
> http://home.swbell.net/csz_stl/towerbells/Cwt-Qtr-Lb_Calculator.html
>
> Could convert things into pounds, add them up and covert them back into
> Lsd?
>
> Mike
>
>  
>
           
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ringingworld.co.uk/pipermail/bell-historians/attachments/20080521/f719b212/attachment.html>


More information about the Bell-historians mailing list