Roo/util/Math.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 12 Jan 2011 04:57:35 +0000 (12:57 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 12 Jan 2011 04:57:35 +0000 (12:57 +0800)
Roo/util/Math.js

index cb470f2..495a697 100644 (file)
@@ -118,6 +118,7 @@ Roo.util.Math.prototype = {
                 ) - r, 
                 o.round();
        },
+    
        divide : function(n){
                if((n = new Roo.util.Math(n, this.precision, this.roundType)) == "0")
                        throw new Error("Division by 0");