COIN-OR::LEMON - Graph Library

Changeset 1222:c40a9d94442d in lemon for lemon/math.h


Ignore:
Timestamp:
06/05/12 12:06:28 (8 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

New features in time_measure.h (#442)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/math.h

    r956 r1222  
    6666    }
    6767
     68  ///Round a value to its closest integer
     69  inline double round(double r) {
     70    return (r > 0.0) ? floor(r + 0.5) : ceil(r - 0.5);
     71  }
     72
    6873  /// @}
    6974
    7075} //namespace lemon
    7176
    72 #endif //LEMON_TOLERANCE_H
     77#endif //LEMON_MATH_H
Note: See TracChangeset for help on using the changeset viewer.