+ 2

Math.ceil() -> how to write a manual function which should perform similar to ceil()?

I used it in code coach challenge - new driver's license for ceiling up the result of a division, but would have been glad if i had manually written the functionality for ceil()

22nd Jul 2020, 10:23 AM
kannan
kannan - avatar
2 Antworten
+ 3
Thanks bro I too have found a one liner for manually ceiling division in java (x/y)+(((x%y)!=0)?1:0 )
22nd Jul 2020, 11:46 AM
kannan
kannan - avatar