fixed ambiguous else

This commit is contained in:
Jez Higgins 2010-01-09 23:01:41 +00:00
parent 7103c3973a
commit 7fbed3b382

View file

@ -407,10 +407,12 @@ namespace impl
inline double roundNumber(double value)
{
if(!(isNaN(value) || isInfinite(value) || (std::fabs(value) == 0)))
{
if((value < 0.0) && (value > -0.5))
value = -0.0;
else
value = std::floor(value + 0.5);
} // if ...
return value;
} // roundNumber