Here you can find the source of altToFeet(double meter)
public static double altToFeet(double meter)
//package com.java2s; public class Main { public static double altToFeet(double meter) { return round(meter * 3.2808399); }// w ww . j av a2 s. c o m public static double round(double value) { return ((int) (value * 10) / 10.0); } }