diff options
author | wout <wout@impinc.co.uk> | 2013-07-25 13:09:30 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-07-25 13:09:30 +0100 |
commit | 58f10a25dbee327f496eacbf7944a561708de5ea (patch) | |
tree | 89647de589f46d40aaf01258240f8d6ad9390322 /src/number.js | |
parent | 494535622842ac8636a85c485b3057e8aa0dc5a7 (diff) | |
download | svg.js-58f10a25dbee327f496eacbf7944a561708de5ea.tar.gz svg.js-58f10a25dbee327f496eacbf7944a561708de5ea.zip |
Added SVG.Array and bumped to v0.29
Diffstat (limited to 'src/number.js')
-rw-r--r-- | src/number.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/number.js b/src/number.js index 19d70eb..e45a8c6 100644 --- a/src/number.js +++ b/src/number.js @@ -38,7 +38,7 @@ SVG.Number = function(value) { SVG.extend(SVG.Number, { // Stringalize toString: function() { - return (this.unit == '%' ? this.value * 100 : this.value) + this.unit + return (this.unit == '%' ? ~~(this.value * 1e8) / 1e6 : this.value) + this.unit } , // Convert to primitive valueOf: function() { |