Here you can find the source of convertToMm(double value)
public static int convertToMm(double value)
//package com.java2s; //License from project: LGPL import java.math.BigDecimal; public class Main { public static int convertToMm(double value) { return BigDecimal.valueOf(value).multiply(BigDecimal.TEN).intValue(); }/*from ww w . ja va2s . co m*/ }