From d487260b7c4f08dc9b018d7bf5ac6bc3f0995015 Mon Sep 17 00:00:00 2001 From: wout Date: Tue, 23 Jul 2013 16:27:31 +0100 Subject: Reworked SVG.Text to give more granular control --- src/number.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/number.js') diff --git a/src/number.js b/src/number.js index 8ca1422..19d70eb 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 * 100 : this.value) + this.unit } , // Convert to primitive valueOf: function() { -- cgit v1.2.3