Re: Scientific notation in numbers

Zack Weinberg <zweinberg@mozilla.com> wrote:
> One implementor's comments on the scientific notation issue (please
> keep in mind that dbaron may disagree with me):

Additional observation: in both SVG 1.1 and SVG Tiny 1.2,
scientific-notation numbers are defined as matching this regular
expression

  [+-]?(([0-9]*\.)?[0-9]+)[Ee][0-9]+

(they don't use those words but that's what it comes out to).

Note how a sign is not allowed after the E.  Mozilla's implementation
does allow a sign.

This is IMO an error in SVG -- scientific notation is not much use if
it's only good for really *big* numbers (in particular, for transforms,
what one is likely to want is *small* numbers).

zw

Received on Wednesday, 10 February 2010 23:10:26 UTC