C# - Convert Between Meters and Feet

26. August 2011 08:00

 

A very simple set of functions in c# for converting between meters and feet and back again.

 

 

public class Length
{

    public static double MetersToFeet(double Meters)
    {
        return Meters / 0.304800610;
    }

    public static double FeetToMeters(double Feet)
    {
        return Feet * 0.304800610;
    }
}

 

E-mail Kick it! DZone it! del.icio.us Permalink