Java tutorial
//package com.java2s; public class Main { public static int GetNearestBarWeight(float weight) { return (int) Math.ceil(weight / 5) * 5; } }