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
instead of

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 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:53:48 UTC