mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-17 18:12:04 +01:00
fixed ambiguous else
This commit is contained in:
parent
7103c3973a
commit
7fbed3b382
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue