Browse Subversion Repository
Diff of /Conograph/trunk/src/utility_func/zmath.hh
Parent Directory
| Revision Log
| Patch
| 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 |
|
|
|