Here you can find the source of altitudeToMeter(double meter)
public static String altitudeToMeter(double meter)
//package com.java2s; public class Main { public static String altitudeToMeter(double meter) { return round(meter) + " m"; }//from ww w . j a v a2 s . co m public static double round(double value) { return ((int) (value * 10) / 10.0); } }