From bc8c2b4487e1a7407ddccd806e1ab37574fd3d83 Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Mon, 27 Jun 2022 17:20:10 -0600 Subject: [PATCH] TODO https://github.com/phetsims/scenery-phet/issues/747 --- js/ScientificNotationNode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ScientificNotationNode.ts b/js/ScientificNotationNode.ts index 0698f3f2d..c70e5a985 100644 --- a/js/ScientificNotationNode.ts +++ b/js/ScientificNotationNode.ts @@ -198,7 +198,7 @@ export default class ScientificNotationNode extends Node { if ( options.exponent !== null ) { // M x 10^E, where E is options.exponent - //TODO https://github.com/phetsims/dot/issues/113 Utils.toFixed is subject to floating-point error + //TODO https://github.com/phetsims/dot/issues/113 division here can result in floating-point error that affects rounding mantissa = Utils.toFixed( value / Math.pow( 10, options.exponent ), options.mantissaDecimalPlaces ); exponent = options.exponent.toString(); }