Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

Try OpenStudio.convert(10000, "GJ", "kBtu").get, the unit strings are case sensitive and I guess it only knows about "Btu".

Try OpenStudio.convert(10000, "GJ", "kBtu").get, the unit strings are case sensitive and I guess it only knows about "Btu".

For more information about how to use the converter and most of the common units you can use, please refer to the Unit Conversion section in the official documentation.