Skip to content

Commit

Permalink
TODO #747
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Jun 27, 2022
1 parent bc281e9 commit 077999a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/ScientificNotationNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ export default class ScientificNotationNode extends Node {
}
else {
const scientificNotation = ScientificNotationNode.toScientificNotation( value, options );

//TODO https://github.com/phetsims/dot/issues/113 division in Utils.toFixed can result in floating-point error that affects rounding
const mantissaNumber = Utils.toFixedNumber( parseFloat( scientificNotation.mantissa ), options.mantissaDecimalPlaces );
const exponentNumber = parseInt( scientificNotation.exponent, 10 );

Expand Down

0 comments on commit 077999a

Please sign in to comment.