bernedom / SI

A header only C++ library that provides type safety and user defined literals for physical units
https://si.dominikberner.ch/doc/
MIT License
486 stars 40 forks source link

Why is there no type for kWh? #138

Open UPC-PaalDriveklepp opened 5 months ago

UPC-PaalDriveklepp commented 5 months ago

I just want to do const auto capacity = 100.0_kWh;

bernedom commented 5 months ago

kWh is not SI unit, which is why it is missing. The SI unit for Energy is Joule. But given its widespread use I'll consider adding it.