Here you can find the source of maxDivisibleNumber(float yourDividend, float divisor)
public static float maxDivisibleNumber(float yourDividend, float divisor)
//package com.java2s; //License from project: Open Source License public class Main { public static float maxDivisibleNumber(float yourDividend, float divisor) { return yourDividend + (divisor - (yourDividend % divisor)); }/*ww w . j a va2s. c o m*/ }