Develop and Download Open Source Software

Browse Subversion Repository

Diff of /Conograph/trunk/src/utility_func/zmath.hh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 32 by rtomiyasu, Mon Jul 7 02:35:51 2014 UTC revision 33 by rtomiyasu, Wed Sep 7 04:38:51 2016 UTC
# Line 96  inline Double put_polynomial_value(const Line 96  inline Double put_polynomial_value(const
96    
97  inline Int8 iceil(const Double& num)  inline Int8 iceil(const Double& num)
98  {  {
99          return lrint( ceil(num) );          return Int8( ceil(num) + 0.01 );
100  }  }
101    
102  inline Int8 ifloor(const Double& num)  inline Int8 ifloor(const Double& num)
103  {  {
104          return lrint( floor(num) );          return Int8( floor(num) + 0.01 );
105  }  }
106    
107  #endif /*MATH_HH_*/  #endif /*MATH_HH_*/

Legend:
Removed from v.32  
changed lines
  Added in v.33

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26