You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Morten Bach Møller <Mo...@thydatacenter.dk> on 2002/04/08 12:52:55 UTC

sqrt(-2.01)

Hi,

In the DoubleSupport.cpp file there is a constant

const double	DoubleSupport::s_NaN = sqrt(-2.01);

This assignment prevents me from using the PlatformSupport.DLL in an
executable since it throws a Float support exception - probably due some
strange way the application hosting the DLL interacts with the float
library.

It would be nice if the limits package could be used instead:

const double	DoubleSupport::s_NaN =
std::numeric_limits<double>::infinity();

kind regards
Morten