C E I L I N G
Rounding mode to round towards positive infinity. If the result is positive, behaves as for RoundingMode.UP; if negative, behaves as for RoundingMode.DOWN. Note that this rounding mode never decreases the calculated value.
Example:
<table class="striped"> <caption>Rounding mode CEILING Examples</caption> <thead> <tr style="vertical-align:top"><th>Input Number</th> <th>Input rounded to one digit<br></br> with `CEILING` rounding </th></tr></thead> * <tbody style="text-align:right"> <tr><th scope="row">5.5</th> <td>6</td> </tr> * <tr><th scope="row">2.5</th> <td>3</td> </tr> * <tr><th scope="row">1.6</th> <td>2</td> </tr> * <tr><th scope="row">1.1</th> <td>2</td> </tr> * <tr><th scope="row">1.0</th> <td>1</td> </tr> * <tr><th scope="row">-1.0</th> <td>-1</td> </tr> * <tr><th scope="row">-1.1</th> <td>-1</td> </tr> * <tr><th scope="row">-1.6</th> <td>-1</td> </tr> * <tr><th scope="row">-2.5</th> <td>-2</td> </tr> * <tr><th scope="row">-5.5</th> <td>-5</td> </tr></tbody> * </table> *