
12 Feb
2007
12 Feb
'07
8:03 p.m.
AMDG Unless some precision benefit accrues from multiplying the factors for each dimension individually, it would be better to compute the complete factor for the conversion once static quantity<unit<System2,Dim1>,Y> convert(const quantity<unit<System1,Dim1>,Y>& source) { Y val = source.value(); static Y fac(compute_factor()); val *= fac; return quantity<unit<System2,Dim1>,Y>::from_value(val); } In Christ, Steven Watanabe