//Microsoft Public License (Ms-PL)
//http://c4fdevkit.codeplex.com/license
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
namespace C4F.DevKit.WebServices
{
/// <summary>
/// Provides useful methods like conversion methods.
/// </summary>
public static class Utility
{
/// <summary>
/// The Method converts the temperature in Fahrenheit to Celcius
/// </summary>
/// <param name="temperature">Temperature in Fahrenheit</param>
/// <returns>Temperature in Celcius</returns>
public static double FahrenheitToCelcius(double temperature)
{
return (5.0 / 9.0) * (temperature - 32);
}
}
}
|