Here you can find the source of floor(String input)
public static String floor(String input)
//package com.java2s; //License from project: Apache License public class Main { public static String floor(String input) { Double d = Double.parseDouble(input); return String.valueOf(Math.floor(d)); }/*from w w w . j a v a 2s .com*/ }