Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-10-24 16:30:00


Matthias Troyer <troyer_at_[hidden]> writes:

>> Back to rationals then?
>
> Pointers to double are allowed, e.g. instead of
>
>> Quantity<float, scale<1.4959855e11>, meters_t) AU
>
> we could do
>
> double AU_scale= 1.4959855e11;
> Quantity<float, scale<&AU_scale>, meters_t) AU
>
> which should work as long as AU_scale is a global variable or static
> member variable.

We could also do any of

   Quantity<float, scale<1,4959855,11>, meters_t) AU

   Quantity<float, scale<1,4959855,e<11> >, meters_t) AU

   Quantity<float, scale<14959855,e<11> >, meters_t) AU

or even, for a reasonable range of exponents,

   Quantity<float, scale<1,4959855 , e11>, meters_t) AU

Doesn't German notation usually use "," for a decimal point? ;-)

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk