Java tutorial
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { public static long decimalToInteger(BigDecimal value) { return value.longValue(); } }