From: Andy Little (andy_at_[hidden])
Date: 2003-10-21 08:21:50
"Paul A. Bristow" <boost_at_[hidden]> wrote in message
> | -----Original Message-----
> | From: boost-bounces_at_[hidden]
> | [mailto:boost-bounces_at_[hidden]]On Behalf Of Andy Little
> | Sent: Saturday, October 18, 2003 12:13 PM
> | To: boost_at_[hidden]
> | Subject: [boost] Re: Re: Physical Quantities revisited
> I have only expressed a view on one fundamental premise - that all values
> held internally as SI units - but I may be wrong in this view.
Within SI units there are various units within 1 dimension.
ie length has units from nanometres to kilometres (and beyond).
Although not clear I presume you mean that if you were working in say
would convert to some internal metres value_type in your constructor.
I would argue however that each unit is best suited to one purpose.
The astronomer might use mainly kilometres (or ... ok lets not go there yet
while the microbiologist uses mainly (say) nanometres.
Within each unit best resolution is maintained by
keeping the internal valuetype at the scale of the unit.
If you used say metres internally for everything then the users
who need very big or small lengths lose resolution.
More accuracy can be gained by switching units where necessary...
A simple example might be a spacecraft.
At launch with large distances from the landing point the journey might be
measured in kilometres.
At some predetermined point the spacecraft will have to prepare for landing.
At that point it might be better to switch to units of metres and finally
even of millimetres if its has a delicate cargo.
From a practical point of view it might just be possible due to the lower
to use a smaller microprocessor at
lower mips (which uses less electrical power) to do the calcs thus saving
precious power and hence weight.
Assuming the specialisations previously discussed, if you really need to use
and stay only with feet, in my system you will not get unit conversion
whereas if you keep everything internally as metres you will have a large
number of conversions which you have no control over.
( Though my demo makes a lot of play of converting from feet to metres etc,
in practise it is obviously best to select the unit best suited to the
application and keep such conversions under as tight control as possible. )
Even within SI, f.p. division by 1000 is not necessarily clean.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk