W3C home > Mailing lists > Public > www-style@w3.org > September 2010

Re: [css-style-attr] SVG WG comments on CSS Styling Attributes Level 1

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 01 Sep 2010 09:05:17 -0400
Message-ID: <4C7E4F8D.5090103@mit.edu>
To: Håkon Wium Lie <howcome@opera.com>
CC: www-style@w3.org, www-svg@w3.org
On 9/1/10 1:49 AM, Håkon Wium Lie wrote:
> (I also think there should be a way to serialize JS without suddenly
> switching notation.)

In theory, there is.  It will, generally speaking, produce decimal 
numbers with up to 300 digits or so, right?  And it happens to not be 
part of the language, unlike the ways of serializing that might output 
e-notation.  It also happens to not be part of standard number-to-string 
conversion libraries, last I checked.

Note that JS will only switch to e-notation for numbers whose absolute 
value is more than 10^20 or less than 10^{-6}. [1]  While using decimal 
notation for the latter can sort of be ok if they're close to 10^{-6}, 
for the 20-digit or more ones it gets pretty silly very fast.


[1]  ECMA 262 section 9.8.1 items 6-9.
Received on Wednesday, 1 September 2010 13:05:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:49:47 UTC