From 48b8119d27954452d6d8e015ac7ed9c044261285 Mon Sep 17 00:00:00 2001 From: Chris Malley Date: Fri, 19 Jun 2015 12:19:52 -0600 Subject: [PATCH] phetsims/tasks#275 replace Math.round with dot.Util.roundSymmetric --- js/model/Fraction.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/model/Fraction.js b/js/model/Fraction.js index a2416f21..45d66fa6 100644 --- a/js/model/Fraction.js +++ b/js/model/Fraction.js @@ -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 ) {