Units developers/user,
Preferably, I would like to get after a quantity's value and/or its units in string format, plumb that through to the .NET Managed environment. The managed plumbing is straightforward enough to research, no problem.
Can I use boost::units::to_string(q), where q is declared something like quantity<si::length,float>? And then, what can we expect after calling it? For instance, if q is set to 2.5 * meters, then can we expect "2.5 m"?
Also, can I set a quantity value apart from its unit? In other words, if I've got a quantity<si::length,float> q again, I'd like to do something like this:
q.value(2.5);
or:
q = 2.5;
Or some way that preserves the current quantity units.
Thank you...
Regards,
Michael