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@gmail.com> 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@compacsort.com> 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@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users