Skip to content

Commit

Permalink
Constrain spectral power density to 4 sig figs, see #114
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisklus committed Sep 24, 2019
1 parent ae57fe5 commit 557b7ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/blackbody-spectrum/view/GraphValuesPointNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ define( require => {
this.spectralPowerDensityValueText.text = formattedString;
}
else {
this.spectralPowerDensityValueText.text = Util.toFixed( spectralPowerDensityValue, 2 );
this.spectralPowerDensityValueText.text = spectralPowerDensityValue.toPrecision( 4 );
}

// Updates value labels' positioning
Expand Down

0 comments on commit 557b7ed

Please sign in to comment.