Re: Scientific notation in numbers

Boris Zbarsky <bzbarsky@MIT.EDU> wrote:

> On 2/10/10 6:09 PM, Zack Weinberg wrote:
> > 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).
> 
> That doesn't seem to match what I'm seeing.  In particular, 
> http://www.w3.org/TR/SVG/types.html#DataTypeInteger explicitly says
> that <integer> has an optional sign, and 
> http://www.w3.org/TR/SVG/types.html#DataTypeNumber says that the 'e'
> or 'E' is followed by an <integer>....

Oops, you're right.  I was confused by the SVG Tiny language.

zw

Received on Thursday, 11 February 2010 00:08:13 UTC