Here you can find the source of convertHoursToMinutes(Double hours)
public static Long convertHoursToMinutes(Double hours)
//package com.java2s; //License from project: Open Source License public class Main { public static Long convertHoursToMinutes(Double hours) { if (hours == null) { return 0L; } else {/*ww w . jav a2 s . c om*/ return Math.round(hours * 60); } } }