Introduce Base.toFloat() and rename Base.formatNumber() to Base.formatFloat()

This commit is contained in:
Jürg Lehni 2012-11-14 01:31:08 -08:00
parent a7320cf2e2
commit d671a08205
10 changed files with 24 additions and 21 deletions
src/basic

View file

@ -238,7 +238,7 @@ var Matrix = this.Matrix = Base.extend(/** @lends Matrix# */{
* @return {String} A string representation of this transform.
*/
toString: function() {
var format = Base.formatNumber;
var format = Base.formatFloat;
return '[[' + [format(this._a), format(this._b),
format(this._tx)].join(', ') + '], ['
+ [format(this._c), format(this._d),