Created
October 12, 2012 19:35
-
-
Save hartez/3881054 to your computer and use it in GitHub Desktop.
Convertinator temperature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var temperature = new ConversionGraph(); | |
var fahrenheit = new Unit("degrees Fahrenheit") | |
.IsAlsoCalled("Fahrenheit") | |
.CanBeAbbreviated("°F") | |
.PluralizeAs("°F"); | |
temperature.AddConversion( | |
Conversions.From(fahrenheit).To(celcius).Subtract(32).MultiplyBy(5M / 9M)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment