From 65da3f573d6d13ae776d93aed25eed022079f33d Mon Sep 17 00:00:00 2001 From: Chris Malley Date: Mon, 22 Jun 2015 11:53:14 -0600 Subject: [PATCH] add note about -0 --- js/Util.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/Util.js b/js/Util.js index ce81e9b..f783e88 100644 --- a/js/Util.js +++ b/js/Util.js @@ -259,8 +259,9 @@ define( function( require ) { * See https://en.wikipedia.org/wiki/Rounding#Round_half_up. * For sims, we want to treat positive and negative values symmetrically, which is IEEE 754 "Round half away from zero", * See https://en.wikipedia.org/wiki/Rounding#Round_half_away_from_zero + * Note that -0 is rounded to 0, since we typically do not want to display -0 in sims. * - * @param {number} value + * @param {number} value ` * @returns {number} */ roundSymmetric: function( value ) {