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

RE: SVG12: conversion to float vs NaN

From: Nandini Ramani <Nandini.Ramani@Sun.COM>
Date: Wed, 02 Nov 2005 02:54:17 -0800
To: derhoermi@gmx.net
Cc: www-svg@w3.org
Message-id: <43689AD9.5060305@sun.com>

Dear Bjoern,

    Thank you for your comments regarding conversion to float vs NaN [1].

As per the IEEE definition, NaN is returned as a result of an arithmetic
like 0/0. It is not appropriate to use it for conversions. So, in the
case of getFloatTrait, we have a consistent approach to throw an
exception when it is called for a trait that cannot be converted to a
float type.

Please respond within two weeks if you are not satisfied.
Best regards

[1]: http://lists.w3.org/Archives/Public/www-svg/2005Jul/0020.html
Received on Wednesday, 2 November 2005 10:39:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:08 UTC