Java tutorial
//package com.java2s; public class Main { public final static int absInt(double d) { return (int) Math.abs(d); } }