That's a safe way. Another solution would be to generate a genuine NaN
double in Number::operator double() if you know how - I don't.

Tom

[EMAIL PROTECTED] wrote:
> 
> The following element
> 
>  <xsl:value-of select="number('xyz')+0"/>
> 
> should produce 'NaN' rather than -12345.
> 
> Would I be right in thinking that the Number class needs to
> overload the arithmetic operators in order to handle these
> situations?
> 
>  .robin.

Reply via email to