Here you can find the source of floorSqrt(long i)
public static final int floorSqrt(long i)
//package com.java2s; public class Main { public static final int floorSqrt(long i) { return (int) Math.sqrt(i); }/*from w w w. j av a2 s . c o m*/ }