1
0
mirror of https://github.com/DanilaFe/abacus synced 2026-01-27 00:55:19 +00:00

Add ceiling to NumberInterface and the two numbers that implement it.

This commit is contained in:
Arthur Drobot
2017-07-31 13:25:23 -07:00
parent 699ba9e193
commit 79ccd61af3
3 changed files with 18 additions and 1 deletions

View File

@@ -79,6 +79,12 @@ public interface NumberInterface {
*/
int signum();
/**
* Returns the least integer greater than or equal to the number.
* @return the least integer >= the number, if int can hold the value.
*/
int ceiling();
/**
* Promotes this class to another number class.
*