Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
fixed averageAbovegroundBiomass to round correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
01painadam committed Nov 13, 2017
1 parent 00d095b commit c0d3bf9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ define([
if (layer.slug == 'biomass_loss') {
// Average of the aboveground live biomass
if (data.biomass) {
p.averageAbovegroundBiomass = Math.round(data.biomass / parseInt(p.totalArea, 10));
p.averageAbovegroundBiomass = Math.round(data.biomass / p.totalArea);
}

// Average of carbon stored in aboveground live biomass
Expand Down

0 comments on commit c0d3bf9

Please sign in to comment.