On Thu, Mar 15, 2012 at 12:46 PM, hamburger <[email protected]> wrote:

> Hello Ger,
> I made the following jsfiddle.
>
> http://jsfiddle.net/jgcjA/4/
>
> As you see it counts wrong!!!!!!!
>

Note the difference between my bl.ocks.org sample and your fiddle: your
cvt() implementation assumes all incoming strings are German formatted
values: . as thousand marker, comma as decimal 'point'.
At least on English installs, such is not the case, as Preis 1.000,44 is
German fmt, but the 'summe' isn't, at least not once .set('text', ...)
patched it!

That's why the 'original' does the guesswork of 'what's the bloody decimal
point this time around?' on each invocation: so that this sort of mix still
would (should?) work.

That is, unless my code is buggy, of course. ;-)

Cheers,

Ger

Reply via email to