Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::units - converting from one derived_dimension to another across systems (imperial to metric)
From: Michael Powell (mwpowellhtx_at_[hidden])
Date: 2018-11-15 16:27:59


On Thu, Nov 15, 2018 at 11:11 AM Roger Leigh via Boost-users
<boost-users_at_[hidden]> wrote:
>
> On 15/11/2018 15:18, Steven Watanabe via Boost-users wrote:
> > AMDG
> >
> > On 11/14/2018 05:04 AM, Matt Vinson via Boost-users wrote:
> >> I am having trouble converting from one derived_dimension to another across systems (imperial to metric). I'd like to convert, say, lb/in to, say, kg/m. I thought I would do the following but get a compiler error #:
> >
> > It's not going to work. lb is a unit of
> > force, but kg is a unit of mass. They are not
> > compatible and there is no conversion between
> > them.
>
> lb·f (foot-pounds) is force; lb is mass.

No, lb-f is a unit of Torque. lb is a unit of Force.

> The code in question is using pounds force, so won't be convertible to
> inches as you say, just wanted to correct the terminology.
>
>
> Regards,
> Roger
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> https://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net