W3C home > Mailing lists > Public > www-svg@w3.org > July 2006

RE: SVG12: conversion to float vs NaN

From: Doug Schepers <doug@schepers.cc>
Date: Fri, 28 Jul 2006 15:38:33 -0400
To: "'Bjoern Hoehrmann'" <derhoermi@gmx.net>, <www-svg@w3.org>
Message-Id: <20060728193838.327B59761@postalmail-a1.dreamhost.com>

Hi, Björn-

Bjoern Hoehrmann wrote:
|   http://www.w3.org/TR/2005/WD-SVGMobile12-20050413/svgudom.html notes
| for e.g. getFloatTrait the method will raise an exception "if 
| requested
| trait's computed value cannot be converted to a float"; it's not clear
| what this means (any string can be converted to a IDL float), please
| change the draft such that it is clear whether these methods 
| can return
| e.g. NaN. If it can, there seems no point in throwing this exception.

Thanks for pointing out this error.  As you correctly assert, NaN is a
IEEE-754 float value. I have changed the text to say:

"TYPE_MISMATCH_ERR: Raised if requested trait's computed value is returned
as a non-numeric float value (e.g. NaN)."

However, because it is a Signalling NaN, we have retained the throwing of an

If this does not satisfy your concern, please let us know right away.

Doug, on behalf of the SVG WG 
Received on Friday, 28 July 2006 19:38:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:09 UTC