lemon/math.h
changeset 1112 6aea07d5ca48
parent 1092 dceba191c00d
     1.1 --- a/lemon/math.h	Thu May 08 17:20:25 2014 +0200
     1.2 +++ b/lemon/math.h	Sat May 31 07:00:14 2014 +0200
     1.3 @@ -67,7 +67,7 @@
     1.4  
     1.5    ///Round a value to its closest integer
     1.6    inline double round(double r) {
     1.7 -    return (r > 0.0) ? floor(r + 0.5) : ceil(r - 0.5);
     1.8 +    return (r > 0.0) ? std::floor(r + 0.5) : std::ceil(r - 0.5);
     1.9    }
    1.10  
    1.11    /// @}