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

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.

-Boris

[1]  ECMA 262 section 9.8.1 items 6-9.

Received on Wednesday, 1 September 2010 13:05:52 UTC