Guest User

Untitled

a guest
Sep 26th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. if (typeof(mass) != 'undefined') {
  2. co2 = mass * mass_co2_per_mass;
  3. } else if (typeof(volume) != 'undefined') {
  4. co2 = volume * density * mass_co2_per_mass;
  5. } else {
  6. co2 = energy / heating_value * mass_co2_per_mass;
  7. }
Add Comment
Please, Sign In to add comment