Returns the greatest integer less than or equal to the double argument
(double value)
| 83 | * Returns the greatest integer less than or equal to the double argument |
| 84 | */ |
| 85 | public static int floor_double(double value) |
| 86 | { |
| 87 | int i = (int)value; |
| 88 | return value < (double)i ? i - 1 : i; |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * Long version of floor_double |
no outgoing calls
no test coverage detected