The methods ceil(), floor(), and round() all take floating-point arguments and return integer equivalents (although again, delivered in a double variable).
round() is overloaded to return int or long. p. 381
Long L3 = Long.valueOf("101010", 2); // binary String to Long object System.out.println("L3 value = " + L3); // result is "L2 value = 42"