(double aNumber)
| 1211 | } |
| 1212 | |
| 1213 | public static int roundDown(double aNumber) { |
| 1214 | int rRounded = (int)aNumber; |
| 1215 | return rRounded > aNumber ? rRounded-1 : rRounded; |
| 1216 | } |
| 1217 | public static int roundUp(double aNumber) { |
| 1218 | int rRounded = (int)aNumber; |
| 1219 | return rRounded < aNumber ? rRounded+1 : rRounded; |
no outgoing calls
no test coverage detected