
In the following program,
a quantity of fempto*second unit is printed as
0 fs (correctly)
but a quantity of composed units composed meter over femptosecond is
printed as
P( m s^-1)
I was expecting:
m fs^-1
At first I though it was a bug, where the P is coming from? where the
parenthesis is coming from?, but then I realized that P stands for
Peta (10e15).
is there any workaround? For example an easy way to define fs_unit in
some other way such that the f (fempto) keeps attached to the s
(second).
Below is the example code
#include
::type fs_unit; quantity
t(1.*si::second); quantitysi::length l(1.*si::meter); quantity ::type > v = l/t; cout << t << endl; // prints 1e+15 fs cout << l << endl; // prints 1 m cout << v << endl; //prints 1e-15 P(m s^-1), notice the P return 0; }