From 557b7edd66da30e8780fadee8bd67c8bbb7ff4fc Mon Sep 17 00:00:00 2001 From: chrisklus Date: Mon, 23 Sep 2019 21:51:19 -0400 Subject: [PATCH] Constrain spectral power density to 4 sig figs, see https://github.com/phetsims/blackbody-spectrum/issues/114 --- js/blackbody-spectrum/view/GraphValuesPointNode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/blackbody-spectrum/view/GraphValuesPointNode.js b/js/blackbody-spectrum/view/GraphValuesPointNode.js index 438a4cc..e530667 100644 --- a/js/blackbody-spectrum/view/GraphValuesPointNode.js +++ b/js/blackbody-spectrum/view/GraphValuesPointNode.js @@ -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