Does boost::units have an option to express energy in electron volts (eV)? I can't seem to find the right header file for that
A bit late, but you can get it so:
boost::units::quantity<boost::units::si::energy> electronvolt
= 1. * boost::units::si::volt * boost::units::si::constants::codata::e;
(however, this is not what the user was asking: no, Boost.Units has no support for electronvolt)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With