Boost logo

Boost Users :

Subject: Re: [Boost-users] [Units] Un-scaling dimensionless value
From: Lindley French (lindleyf_at_[hidden])
Date: 2014-02-17 17:18:14


I also think it's a design flaw to allow dimensionless units to have a
scale factor, by the way. Ideally, that would be backed out automatically
in the dimensionless case.

On Mon, Feb 17, 2014 at 5:14 PM, Lindley French <lindleyf_at_[hidden]> wrote:

> Yes, I caught that subtlety and I understand it in that context. I just
> feel there should be some way to use Boost.Units---portions of it,
> anyway---in a context where exact math is required and floating point is
> therefore forbidden.
>
>
> On Mon, Feb 17, 2014 at 4:56 PM, Gavin Lambert <gavinl_at_[hidden]>wrote:
>
>> On 18/02/2014 07:05, Quoth Lindley French:
>>
>> I can understand why double was chosen for scaling, but it doesn't
>>> "feel" right. Oh well, this will do for now.
>>>
>>
>> Bear in mind that scaling is used not just for SI prefixes but also for
>> lb/kg conversions and similar. Double is probably the only way to go there.
>>
>>
>>
>> _______________________________________________
>> Boost-users mailing list
>> Boost-users_at_[hidden]
>> http://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