Java tutorial
//package com.java2s; public class Main { public static float scaledDensity = 1; public static int sp(float value) { return (int) Math.ceil(scaledDensity * value); } }