W3C home > Mailing lists > Public > www-svg@w3.org > November 1999

is scientific notation allowed in numbers?

From: Apu Nahasapeemapetilon <petilon@yahoo.com>
Date: Sat, 13 Nov 1999 15:50:31 -0800 (PST)
Message-ID: <19991113235031.852.rocketmail@web116.yahoomail.com>
To: www-svg@w3c.org
In path data, is it OK to output floating point 
coordinates in scientific notation?

In other words, can I write
   3.450000e-004
instead of
   0.000345

The specification should make it clear if this is
allowed or not.

This issue is very important. Many if not most 
applications that generate SVG files will use the
C library function "printf()" to emit coordinates.
For very small numbers the printf() function 
sometimes uses the scientific notation. If this is
not allowed then SVG generators should take special
precaution to avoid scientific notation.

Ideally the SVG spec must explicitly allow numbers
in scientific notation so that SVG viewers will be
prepared to handle this.

Some format specifications are silent about this
issue and that causes problems. For example, Adobe
Illustrator barfs if it find a number in scientific
notation. But AI documentation doesn't warn you
about it. Products fail in the field because of this
omission in the specs.


__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
Received on Saturday, 13 November 1999 18:50:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 5 November 2012 23:52:46 GMT