Skip to content

Commit

Permalink
phetsims/tasks#275 replace Math.round with dot.Util.roundSymmetric
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Jun 19, 2015
1 parent bb92c52 commit 48b8119
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/model/Fraction.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ define( function( require ) {

reduce: function() {
var gcd = Util.gcd( this.numerator, this.denominator );
this.numerator = gcd === 0 ? 0 : Math.round( this.numerator / gcd );
this.denominator = gcd === 0 ? 0 : Math.round( this.denominator / gcd );
this.numerator = gcd === 0 ? 0 : Util.roundSymmetric( this.numerator / gcd );
this.denominator = gcd === 0 ? 0 : Util.roundSymmetric( this.denominator / gcd );
},

equals: function( that ) {
Expand Down

0 comments on commit 48b8119

Please sign in to comment.