Here you can find the source of convertMinutesToHours(Long minutes)
public static BigDecimal convertMinutesToHours(Long minutes)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { public static BigDecimal convertMinutesToHours(Long minutes) { if (minutes == null) { return BigDecimal.ZERO; } else {//from w ww.ja v a 2s. co m return new BigDecimal(minutes.doubleValue() / 60).setScale(1, BigDecimal.ROUND_HALF_UP); } } }