Over a million developers have joined DZone.

Round In Java

·

Math.ceil(1.1); //Returns 2
Math.ceil(1.9); //Returns 2

Math.floor(1.1); //Returns 1
Math.floor(1.9); //Returns 1
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}