/**Add ability of the measurement tool to utilize inches rather than meters. **/
public final class ConvertMetric {
/** Multiplier for meters to feet. **/
private static final double FEET_CONVERT = 3.2808399;
private ConvertMetric() {}
/** Convert a number of meters to feet. **/
* @param meters Value to convert in meters.
* @return meters converted to feet.
*/
public static double asFeet(final double meters) {
DecimalFormat twoDForm = new DecimalFormat("#.##");
return Double.valueOf(twoDForm.format(meters * FEET_CONVERT));
}
Original issue reported on code.google.com by promptne...@gmail.com on 6 Sep 2013 at 3:20
Original issue reported on code.google.com by
promptne...@gmail.com
on 6 Sep 2013 at 3:20