conversion for ideal gas equation